-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
a11y - "Danger" buttons are using color alone to indicate danger #574
Comments
can this be done ? |
Color is the secondary indicator in this case. The text on the button should indicate that the action the user is taken can be dangerous (i.e. delete, remove, etc.). We will also make sure the button has a danger aria label. |
joshblack
pushed a commit
to joshblack/carbon
that referenced
this issue
May 2, 2019
… is inserted into (carbon-design-system#574) Flatpickr does not change the position of calendar dropdown once it's created, even after the element containing the triggering element (`<input>`) is scrolled. Flatpickr allows specifying the DOM node the calendar dropdown is inserted into, which would work as a way to alleviate such scrolling issue, for example, by specifying a DOM element being scrolled along with the triggering element. This change adds a prop that will be passed along to Flatpickr as such DOM node. Fixes carbon-design-system#357.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On the Buttons page there is an example showing "Danger buttons" where their text and border color is red and achieved by using a specific class on the button tag.
http://carbondesignsystem.com/components/button/code
I would suggest not using color alone to indicate warnings or danger. Add an additional danger icon with sufficient contrast in addition so that the danger is relayed more inclusively.
Add labels
a11y
The text was updated successfully, but these errors were encountered: