Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

button render #3571

Merged
merged 7 commits into from
Oct 23, 2023
Merged

button render #3571

merged 7 commits into from
Oct 23, 2023

Conversation

willmcgugan
Copy link
Collaborator

@willmcgugan willmcgugan commented Oct 22, 2023

Fixes #3570 and an issue with highlights on buttons larger than one line. Note the chunky highlights that aren't center aligned.

Screenshot 2023-10-22 at 18 22 16

Adds pad.py which contains HorizontalPad. This is similar to Rich's Padding, but simpler and won't stretch the height. This new renderable is public, but I'm going to hold off adding it to the docs for now. Just until I'm certain this is stable.

Copy link
Contributor

@davep davep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it would be a good idea to add either a snapshot test for this style of button and its highlight, or a unit test for HorizontalPad, or both?

@willmcgugan
Copy link
Collaborator Author

Do you think it would be a good idea to add either a snapshot test for this style of button and its highlight, or a unit test for HorizontalPad, or both?

Yeah, I'll add a test.

@willmcgugan willmcgugan merged commit 2f8bb86 into main Oct 23, 2023
22 checks passed
@willmcgugan willmcgugan deleted the button-fix branch October 23, 2023 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Button rendering fails with non-standard text alignment
2 participants