cfpb / design-manual

⚠️ THIS REPO IS DEPRECATED ⚠️ A set of design principles and standards for the Consumer Financial Protection Bureau.
https://cfpb.github.io/design-manual/
Creative Commons Zero v1.0 Universal
98 stars 71 forks source link

Bring button page in line with CF #602

Closed nataliafitzgerald closed 6 years ago

nataliafitzgerald commented 6 years ago

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

screencapture-0-0-0-0-4000-page-components-buttons-html-1519862827340

Notes

-

Todos

-

Checklist

nataliafitzgerald commented 6 years ago

There are additional button options in Capital Framework that we could bring in at this time if we wish:

Scotchester commented 6 years ago

Pretty sure that disabled buttons shouldn't be focusable, right?

marteki commented 6 years ago

@Scotchester Disabled buttons should be focusable for accessibility reasons. Otherwise, some members of the audience might never know that it exists.

Scotchester commented 6 years ago

Ah, of course.

Scotchester commented 6 years ago

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.

marteki commented 6 years ago

@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.

marteki commented 6 years ago

@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.)

nataliafitzgerald commented 6 years ago

@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:

marteki commented 6 years ago

@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.

nataliafitzgerald commented 6 years ago

Destructive action hover and focus are also not contrast compliant. So I will add that to the list above.