-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(Button, OrderedList, UnorderedList): add expressive styles #8477
feat(Button, OrderedList, UnorderedList): add expressive styles #8477
Conversation
Deploy preview for carbon-elements ready! Built with commit 61d08d8 |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit 61d08d8 https://deploy-preview-8477--carbon-components-react.netlify.app |
So. Excited. Thank you Josefina! A few possible changes but I wanna wait a few more hours so I can discuss with other designers. More soon! |
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.
Hey! So this is looking very good. The only 1 minor request for change is: is it possible to disallow button size option for field
and small
when expressive is toggled on? The smaller buttons don't look good with 16px label and we don't wanna make them available:
So if based on the new size prop values, the expressive button size options would be:
lg
= 48
xl
= 64
2xl
= 80
This actually bring up an interesting point. Should we just not provide code for those smaller expressive options. We don't want those to exist at all correct? @shixiedesign |
@aagonzales We could enforce it on the code side if someone passed down |
@aagonzales @tw15egan @emyarod Updated the PR. Expressive buttons now default to a min of 48px height, but can be used with larger sizes. Icon only expressive buttons also can be used in larger sizes, but if they're not expressive the default sizing stays the same (i.e. doesn't go above 48px). See recording below for testing: Screen.Recording.2021-05-04.at.2.28.01.PM.mov |
Oops guys I may have been wrong about the icon-only button. Talking to @jeanservaas now. |
@aagonzales @emyarod @tw15egan @jnm2377 @andreancardona Ug. OK, sorry, trying to get up to speed with the conversation. Are we talking about having:
I got your question mixed up Anna... I thought you were asking about "fluid" icon buttons. But yes, we DO need to give them a. 48px icon only button with a 20px icon So for the expressive button variants, we would make these BUTTON variants with the 16px type
And only one ICON ONLY BUTTON variant expressive variant
It would not make sense to make a fluid icon only button, because the type on our fluid (64 and 80px buttons) is not vertically centered. Icon only buttons do not bleed to the edge of containers (unless @shixiedesign has a use case i'm not aware of) |
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.
given that the expressive theme will only affect certain button variants, would it make more sense to have a separate Expressive story rather than having some knobs in the Playground story that have no effect on certain button variants?
@aagonzales @emyarod @tw15egan @jeanservaas this is ready for re-review. We added an expressive specific story, and updated icon-only expressive button to be only 48px. 👍🏽 |
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.
Ok I think this all looks correct now! Thanks for hanging in there y'all.
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.
A few comments but looking good 👍🏻
@tw15egan updated 👍🏽 |
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.
Looks great!
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.
looks good to me
Closes #8301
Went back and forth about whether or not to create a different component for this or just adding a prop to the existing code. Ultimately, since we felt the style changes were minor (with type style being the main thing changing), we went with just adding a prop to toggle a className. Totally open to feedback if the team thinks there is a better way to do this.
New
expressive
prop for Button, OrderedList and UnorderedListisSelected
knob will actually do somethingTesting / Reviewing
Button
to toggle expressive styles