Stop using yellow buttons for normal operations
Bug #2023803 reported by
Stephanie Leary
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The yellow .btn-warning style is used throughout Evergreen as a generic secondary button style. As the class name indicates, this is intended to be used for warnings; it is a cognitive accessibility problem to use yellow, orange, and red for things that are not warnings or errors.
The yellow in particular is also a color contrast problem; while the border added in bug 1991562 helps set these buttons off from the page background, it is still the most difficult to read, especially on hover.
We need a secondary button style that can be used for normal operations that don't involve warnings.
Changed in evergreen: | |
assignee: | Stephanie Leary (stephanieleary) → nobody |
Changed in evergreen: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in evergreen: | |
assignee: | nobody → Bill Erickson (berick) |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Branch in progress: https:/ /git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ sleary/ lp2023803- calmer- cancel- delete- buttons
This creates two new button variants: .btn-normal and .btn-destroy. In their default states, both buttons are light gray with black text, identical to input group buttons. In hover and focus states, .btn-destroy keeps its gray background, but its text and border turn red. In the active state (i.e. when pressed), .btn-destroy has a red background with white text, identical to .btn-danger's default state.
The attached screenshot shows the various .btn-destroy states. (On hover/focus/active, .btn-normal just gets slightly darker.)
I'm parking this branch here so we can experiment with replacing the .btn-warning style for innocuous operations (cancel, go back, etc.) and some uses of .btn-danger where there is no emergency that requires the user's immediate attention.