Problem/Motivation
During an accessibility walkthrough, @mgifford pointed out the target size for the category close buttons could benefit from being made larger. Based on this draft specification for AA target size, any clickable target should be a minimum of 24x24px. While it's a draft specification, it's an accessibility improvement, and Project Browser will benefit from the change even if the spec is never formalized. It seems like the size increase could potentially add a few PX to the pills. If bigger pills don't work well, some kind of clever design solution ought to take care of it.
Steps to reproduce
Proposed resolution
Remaining tasks
- ✅ File an issue about this project
- ☐ Manual Testing
- ☐ Code Review
- ☐ Accessibility Review
- ☐ Automated tests needed/written?
Issue fork project_browser-3321703
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
utkarsh_33 commentedComment #5
bnjmnmI tested this manually, and it looks like it's increasing the size of the pills which in turn increases the size of the container. Could an approach be tried that increases the close button size while keeping the heights the same everywhere else. A little bit of positioning, flex, or possibly just modifying the pill padding should be able to take care of that.
Comment #6
utkarsh_33 commentedComment #7
utkarsh_33 commentedThe latest MR is in accordance to the discussion in accessibility meeting on 10th Nov.
Comment #9
narendrarChanges looks good to me. Marking as RTBC.
Comment #10
bnjmnmComment in MR
Comment #11
utkarsh_33 commentedComment #12
bnjmnmThe current MR returns it to the state that I requested changes on in #5 - the pill size should not change, but the image should be increased. The closest to the desired solution is the
transform:<code> style that was in there a commit or two ago. This was a welcome change, it just needed to be there at all times instead of requiring <code>:hoverComment #13
utkarsh_33 commentedComment #15
bnjmnmLooks good. Merged!
Comment #16
tim.plunkett