-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
flex button #2078
flex button #2078
Conversation
to streamline testing of states
- vertical buttons automatically align left and push rightIcon to right side! - loading easily hides this container without needing to wrap children!
fix row margin when large, right icon spacing in CSS APIPreview: documentation | landing | table |
* to the appropriate side. `icon` and `rightIcon` will be pushed to either side. | ||
* @default "center" | ||
*/ | ||
align?: "left" | "center" | "right"; |
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.
😍 😍 😍
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.
this conflicts somewhat with the NavbarGroup
align prop -- here, you are referring to the alignment of content while for NavbarGroup (as well as most design tools), align
refers to the component's alignment in its container. I suggest renaming this to textAlignment
or alignText
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.
mmm yes good catch @adidahiya! i'll go with alignText
[Classes.LARGE]: large, | ||
[Classes.MINIMAL]: minimal, |
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.
small?
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.
would prefer not to add tangential new props in this PR.
i plan to add modifier props across the board after 2.0 (non-breaking)
fill: false, | ||
iconOnly: false, | ||
large: false, | ||
minimal: false, |
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.
small modifier in examples would be neat
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.
ButtonGroup doesn't have a small
prop.
let's wait on that, i want to add modifier props everywhere
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.
let flex figure out heights of numeric-input buttons 👌Preview: documentation | landing | table |
* to the appropriate side. `icon` and `rightIcon` will be pushed to either side. | ||
* @default "center" | ||
*/ | ||
align?: "left" | "center" | "right"; |
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.
this conflicts somewhat with the NavbarGroup
align prop -- here, you are referring to the alignment of content while for NavbarGroup (as well as most design tools), align
refers to the component's alignment in its container. I suggest renaming this to textAlignment
or alignText
otherwise lgtm |
ff00e9d
to
7d51281
Compare
align => alignText, add more button classesPreview: documentation | landing | table |
Merge branch 'develop' of github.com:palantir/blueprint into gg/flex-buttonPreview: documentation | landing | table |
Changes proposed in this pull request:
pt-button-base()
is inline flex row.pt-fill
containeralignText
prop toButton
andButtonGroup
(and examples)Reviewers should focus on:
align
prop: play with it in bothButtonGroup
JS examples