-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat: extra small buttons #19435
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
base: main
Are you sure you want to change the base?
feat: extra small buttons #19435
Conversation
All contributors have signed the DCO. |
I have read the DCO document and I hereby sign the DCO. |
recheck |
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #19435 +/- ##
=======================================
Coverage 84.87% 84.87%
=======================================
Files 372 372
Lines 14430 14431 +1
Branches 4694 4695 +1
=======================================
+ Hits 12247 12248 +1
Misses 2037 2037
Partials 146 146 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@@ -150,7 +150,7 @@ export interface IconButtonProps | |||
/** | |||
* Specify the size of the Button. | |||
*/ | |||
size?: Extract<ButtonSize, 'sm' | 'md' | 'lg'>; | |||
size?: Extract<ButtonSize, 'xs' | 'sm' | 'md' | 'lg'>; |
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.
The accessibility task isn't marked as completed in #19435 (comment). Do xs
IconButton
s meet https://www.ibm.com/able/requirements/requirements/?version=v7_3#2_5_8?
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.
Yes, xs icon buttons are 24 x 24 pixels, so just meet accessibility requirements
Closes #19423
Adds support for a new "xs" button size (24px)
Changelog
New
Testing / Reviewing
Storybook (React & Web Components)
PR Checklist
As the author of this PR, before marking ready for review, confirm you:
More details can be found in the pull request guide