Closed nataliafitzgerald closed 6 years ago
There are additional button options in Capital Framework that we could bring in at this time if we wish:
Pretty sure that disabled buttons shouldn't be focusable, right?
@Scotchester Disabled buttons should be focusable for accessibility reasons. Otherwise, some members of the audience might never know that it exists.
Ah, of course.
At the risk of taking this discussion out-of-scope, I'm reminded that our hover/focus state is inaccessible with White on Pacific 80.
@nataliafitzgerald Yeah, let's bring in secondary and destructive buttons, but is it okay to do it in a separate PR so we can get this one squared away?
Super button (aka Large primary button) states - Do we have an official name for this button?
I quite like "large primary button." It's clear and direct and easy to understand in a way that "super button" isn't.
@Scotchester On a similar out-of-scope-for-this-PR-but-important-to-identify note: Gray text on a Gray 20 background for our disabled buttons also isn't accessible for color contrast reasons.
(And color contrast errors throughout the header and footer of the Design Manual. Oi.)
@Scotchester Last fall I posted an issue related to the Design Manual header and footer. Here it is: https://github.com/cfpb/design-manual/issues/539. If it helps I can come up with the accessible text colors for that and then perhaps a dev can pick it up?
@marteki @Scotchester Related to the buttons, I will pull the remaining tasks into a separate PR or issue:
@nataliafitzgerald :+1: to everything you just said.
I can also help with the dev work for the DM header and footer stuff, depending on others' availability.
Destructive action hover and focus are also not contrast compliant. So I will add that to the list above.
The current DM button page is missing items that are available in Capital Framework. The additions here are not exhaustive but are a good start.
Additions
Removals
Changes
Testing
-
Review
Preview this PR without the whitespace changes
Screenshots
Notes
-
Todos
-
Checklist