-
Notifications
You must be signed in to change notification settings - Fork 19
Focus states need to be more prominent #445
Comments
Problem (abstract)It is hard to differentiate the normal state from the focus state. The color contrasts of the border colors of the normal and focus-state don't differ enough. Solution (abstract)
* By WCAG Success Criteria 1.4.11 (here's the official explainer document) Solution in phoenixLike with most color related issues this isn't a development/code issue alone, it has to be coordinated with a visual design department possibly (and also theming must be taken into consideration). Nevertheless my suggestion for a focus style adhering to the points above would be (simplified code):
|
As agreed upon at the sprint planning meeting last monday, here's my take/proposal on much more prominent focus styles, and then show it to @wuenschedesign and the team to gather feedback. I tried to stay inside the established color palette, while still sticking to the contrast ratios quoted above. Take note:
See below several demo images and a short video of how I would subtly animate the focus. |
@PVince81 @DeepDiver1975 @LukasHirt : I need some feedback, how a focus state must be implemented, e. g. does an additional border change the dimension of an element/button and thus makes a UI „jump“? |
@wuenschedesign In my "prototyping" for the screenshots above I used CSS properties |
@wuenschedesign I'm not familiar with the term trimbox, but I guess that is the answer. Like in my demos above, I used box-shadow not for a realistic drop shadow but for a rectangular border that is not part of the CSS box model, therefore preventing a jump (these jumps are at the amount of the "width" of the border, but even noticable when its 1px. Thus: "outline" with box shadow, or where possible, with CSS's |
@wuenschedesign In my opinion on some items like the favorite star the visual difference between normal and focussed is way too subtle. In some regards it is as un-prominent as the current state in Phoenix. One info: It is technically possible to restrict the focus styles to keyboard/non-pointer usage alone ( So my recommendation is: You can/should be way more bold and obvious with the focus styles (see my demos). |
Description
Focus styles of all buttons, checkboxes, links does only slightly differ from the normal state - often times it is not obvious which piece of interface has focus
The text was updated successfully, but these errors were encountered: