-
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(react): add unstable_IconButton #10095
feat(react): add unstable_IconButton #10095
Conversation
✔️ Deploy Preview for carbon-react-next ready! 🔨 Explore the source changes: 8eee0cf 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/61a50c7f5ecf1c0007d23c2b 😎 Browse the preview: https://deploy-preview-10095--carbon-react-next.netlify.app |
✔️ Deploy Preview for carbon-components-react ready! 🔨 Explore the source changes: e240c1b 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/618d92c56b171b0007c0e267 😎 Browse the preview: https://deploy-preview-10095--carbon-components-react.netlify.app |
@laurenmrice this should show up under the next storybook under the |
✔️ Deploy Preview for carbon-elements ready! 🔨 Explore the source changes: e240c1b 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/618d92c57c336b0008193b9c 😎 Browse the preview: https://deploy-preview-10095--carbon-elements.netlify.app |
✔️ Deploy Preview for carbon-elements ready! 🔨 Explore the source changes: 8eee0cf 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/61a50c7f8428790007e69d98 😎 Browse the preview: https://deploy-preview-10095--carbon-elements.netlify.app |
✔️ Deploy Preview for carbon-components-react ready! 🔨 Explore the source changes: 8eee0cf 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/61a50c7fb9b66900083fa34e 😎 Browse the preview: https://deploy-preview-10095--carbon-components-react.netlify.app |
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 really great! I'm excited to see one less dependency in the button styles🏅
bump @jnm2377 @laurenmrice when you get a sec 👀 |
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.
Sorry for the delayed review. This looks 🔥
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.
Tooltip sizing
- The caret for the icon button tooltip should be 8px x 4px in size.
- There should be 2px padding on the top and the bottom of the text inside of the tooltip
For align
Take out alignments for:
- left-bottom
- left-top
- right-bottom
- right-top
For kind
The following buttons do not come as icon only buttons and should be removed from the dropdown:
- danger
- danger--primary
- danger--ghost
- danger--tertiary
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.
Thanks @aagonzales! For the delay, there is a delay for entrance and exit that is a part of the spec. These are also configurable values as props so teams can have set the exit delay to 0 for that classic icon group approach 👀 Another option on our end could be to implement such that only one tooltip is visible at a time. For the height, I just updated it to use |
@aagonzales let me know if you have any more questions! |
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.
I think its fine from the comments I posted. Not sure if @laurenmrice had any other.
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.
🚀
Closes #9967
This PR adds in the
IconButton
component underunstable
for v11Changelog
New
src/components/IconButton
plus related tests and playground storyChanged
tooltip
to includeicon-tooltip
tooltip
to have two new custom properties:tooltip-padding-block
andtooltip-padding-inline
Removed
Testing / Reviewing
unstable_IconButton
story in our next storybook and verify that the component works and looks as expected