-
Notifications
You must be signed in to change notification settings - Fork 648
Button alignment and size bug fixes #2652
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
Changes from 10 commits
32366dd
799c0fb
0386534
5384666
598f612
f259d94
f451b47
d70226a
a768279
bbde902
73d0bb6
2ea235f
71bf9a0
34602d3
5a93796
165ef69
f062157
b70a4a0
fced6de
ea7a104
51c1139
f7b1755
0f9ea6e
31e46c9
9ea4dc7
96c9947
0fd9311
13999ed
64383b6
b7113e4
651f2e4
5cd7f90
b6843d3
ef58d3f
44b4f35
b0ed486
2caec20
08a8ffe
af3a5e7
caf0f23
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| --- | ||
| "@primer/react": patch | ||
| --- | ||
|
|
||
| - Add a block prop for full width | ||
| - Add alignContent prop to align content to center or start | ||
| - Use control sizing CSS variable values (not using CSS vars just yet) | ||
| - Use height over padding for more control over sizing | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't understand why we'd need height if we're sticking to control spacing tokens
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a bit easier to manage control size with static
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh I didn't realize we never allowed a line break in buttons. When the button text doesn't fit on one line, do we:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||

Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any use cases for
alignContentbesides when the button is set to fill the width of it's parent using theblockprop?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope! I can add clarity here.
CleanShot.2022-12-12.at.13.25.51.mp4