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
Reconsider design of alerts #194
Comments
@mcarrano Dark? Very similar to carbon, not a bad thing.
|
@mceledonia I like the new visual direction. Just a couple of things to keep in mind...
|
Thanks for the feedback Matt, it all sounds good! I'll try to reply per-bullet:
|
Renamed this issue based on discussion between @mceledonia and @kybaker we want to reconsider both toasts and inline alerts together. |
Thanks for posting these @mceledonia . In comparing against the current variants here: https://www.patternfly.org/v4/documentation/react/components/alert we seem to have lost the close (X) button. Can that be added to the upper right? Wondering if we should ever have multiple actions on an Alert. We do not now. @mcoker do you have everything you need here? Any more specifics on color? Assume they map to current colors used. @jessiehuff can you also take a look from an accessibility perspective? |
I really like the new styling, it looks great so far! :) A few points to consider accessibility wise:
|
Thanks for the comments @jessiehuff . I recall that we previously discussed all of the issues with actions in toast alerts and what you describe here sounds consistent with what we put in written guidelines. |
No problem at all! :) Just checked with Jenn on the icon colors. These were her thoughts: If icons are redundant, then I don’t think the color contrast rules apply to them. But if icons are the only way that we provide meaning on a page, then they should meet color contrast. In this section: https://webaim.org/articles/contrast/#sc141, they explain how color can’t be used as the only way to communicate information. So we can’t use color alone to indicate the type of alert to people. And therefore we have an icon to also communicate that information. This means that the icon for some users, i.e. color-blind users, is the only means of communicating alert type. And if the icon is the only method to communicate type, then we should make sure the icon meets color contrast requirements. |
@mcarrano @mceledonia looks good to me! The specifics on color and spacing would be great as a reference. |
Thanks for all your work on this @mceledonia . I have posted your designs to patternfly/patternfly#2659 and will mark this as complete. |
1 similar comment
Thanks for all your work on this @mceledonia . I have posted your designs to patternfly/patternfly#2659 and will mark this as complete. |
This has been merged into the library! Will create a follow up issue to update template file. Closing this issue |
Stacking two status colors on top of each other creates a difficult accessibility issue when ensuring the items meet the required contrast ratios.
cc @mceledonia
The text was updated successfully, but these errors were encountered: