Opened 5 years ago
Closed 5 years ago
#48578 closed enhancement (fixed)
Change health check accordion appearance on focus
Reported by: | mensmaximus | Owned by: | audrasjb |
---|---|---|---|
Milestone: | 5.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Site Health | Keywords: | has-patch commit |
Focuses: | ui, accessibility, administration | Cc: |
Description
The accordion items on the health check page get an outline on focus. This looks annoying given the new admin css. I would rather suggest a background color on focus.
status quo:
.health-check-accordion-trigger:focus { color: #191e23; border: none; box-shadow: none; outline-offset: -2px; outline: 1px dotted #555d66; }
suggestion:
.health-check-accordion-trigger:focus { color: #191e23; border: none; box-shadow: none; background-color: #eee; }
Attachments (2)
Change History (15)
#1
@
5 years ago
- Summary changed from Change health check accordino appearance on focus to Change health check accordion appearance on focus
- Version changed from 5.3 to trunk
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
5 years ago
#5
@
5 years ago
Thank you for this insight on accessibility. I understand the concerns, so why not simply adapting styles from other elements like wp-core-ui buttons.
Suggestion:
.health-check-accordion-trigger:focus { color: #191e23; border: none; box-shadow: none; outline-offset: -2px; outline: 2px solid #0071a1; background-color: #f8f9f9; }
#6
@
5 years ago
- Keywords has-patch added
- Milestone changed from Awaiting Review to 5.4
- Severity changed from trivial to normal
- Version trunk deleted
Hi,
First, Let's add this ticket to milestone 5.4 :-)
In 48678.diff
, I tested the following CSS rule:
.health-check-accordion-trigger:focus { color: #191e23; border: none; box-shadow: none; outline-offset: -1px; outline: 2px solid #0071a1; background-color: #f8f9f9; }
The outline-offset: -1px
looks better to me than -2px
.
See the above animated screenshot for reference.
Cheers,
Jb
This ticket was mentioned in Slack in #accessibility by xkon. View the logs.
5 years ago
This ticket was mentioned in Slack in #core-site-health by clorith. View the logs.
5 years ago
#10
@
5 years ago
- Keywords commit added
I like this, and with design sign-off I'm happy to mark this for commit.
Focus indication can't be done with color alone, as it wouldn't be perceived by some users e.g. users with color perception impairments or low vision. That's the reason why the browsers native focus style uses a shape. In the same way, a custom style needs to use a shape.
Improvements are always welcome. If the design team feels like exploring a new focus style, the accessibility team has no objections as long as it uses also a shape.