-
Notifications
You must be signed in to change notification settings - Fork 42
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
[Accessibility] Button fixes #274
Conversation
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.
👍
@ronijaakkola I cherry-picked your documentation commit to this branch. #262 can now be closed. |
Thanks! I will check the documentation and update the examples if needed. |
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 noticed that the size and margins of the small button icons are wrong. According to the button design, the size should be the same as for the normal button. The margin between the label and the left/right icons should be 8px, now it's 12px, so it should be changed to use the var(--spacing-2-xs)
token. Maybe that could be changed as part of this task as we're changing the small button appearance anyway?
/* left - small */
.hds-button--small .hds-icon {
height: 1.125em;
margin-left: var(--spacing-xs);
width: 1.125em;
}
93d0c71
to
5c090b2
Compare
- Changed documentation to mention that Supplementary buttons should not be used without an icon - Added a mention that HDS Buttons comply with WCAG Target Size guideline
5c090b2
to
bd292ea
Compare
WIP - Requires https://helsinkisolutionoffice.atlassian.net/browse/HDS-449
Description
Accessibility fixes for the Button component:
iconLeft
oriconRight
for supplementary buttonHow Has This Been Tested?
Tested by running Storybook and documentation site locally.