Skip to content

Update Category Search Modal keyboard accessibility#8703

Merged
rtibbles merged 1 commit intolearningequality:release-v0.15.xfrom
marcellamaki:fix-category-search-modal-accessibility
Nov 17, 2021
Merged

Update Category Search Modal keyboard accessibility#8703
rtibbles merged 1 commit intolearningequality:release-v0.15.xfrom
marcellamaki:fix-category-search-modal-accessibility

Conversation

@marcellamaki
Copy link
Member

@marcellamaki marcellamaki commented Nov 16, 2021

Summary

Swaps in KButton component to add tab/keyboard nav, focus outline, and hover state. Updates cursor pointer for accuracy.

References

Fixes #8698

tab-nav-category-modal

Reviewer guidance

Does this make significant enough improvement? Any further design recommendations @jtamiace?

Testing checklist

  • Contributor has fully tested the PR manually
  • If there are any front-end changes, before/after screenshots are included
  • Critical user journeys are covered by Gherkin stories
  • Critical and brittle code paths are covered by unit tests

PR process

  • PR has the correct target branch and milestone
  • PR has 'needs review' or 'work-in-progress' label
  • If PR is ready for review, a reviewer has been added. (Don't use 'Assignees')
  • If this is an important user-facing change, PR or related issue has a 'changelog' label
  • If this includes an internal dependency change, a link to the diff is provided

Reviewer checklist

  • Automated test coverage is satisfactory
  • PR is fully functional
  • PR has been tested for accessibility regressions
  • External dependency files were updated if necessary (yarn and pip)
  • Documentation is updated
  • Contributor is in AUTHORS.md

@marcellamaki marcellamaki added the TODO: needs review Waiting for review label Nov 16, 2021
@marcellamaki marcellamaki added this to the 0.15.0 milestone Nov 16, 2021
Copy link
Contributor

@indirectlylit indirectlylit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, this is a huge improvement!

Two other more minor questions while we're here – cc @jtamiace

  1. Icon location: Curious whether it was intentional to not use a KLabeledIcon and instead use a separate row? The layout looks a little odd to my eyes as it is:
current labeled icon
image image
image image
  1. Hover state: Still feels very subtle compared to KDS components. In particular the fade from text to primary is very slow and low-contrast:

2021-11-16 12 17 29

@jtamiace
Copy link
Member

The icons were meant to be a bit bigger - in the mockup they're 40px, but can adjust to the size that seems right. (sorry, I never included this in the main Figma page for searching)

Screen Shot 2021-11-16 at 9 30 35 AM

For the hover state, we could do something like this? Building off some of your suggestions in #8631

Screen Shot 2021-11-16 at 10 29 33 AM

Copy link
Member

@jtamiace jtamiace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if hover states would be better in a follow up issue since there are several UIs that could apply to, otherwise I think this is great!

@indirectlylit
Copy link
Contributor

I don't know if hover states would be better in a follow up issue since there are several UIs

@marcellamaki – up to you. Feel free to merge and I'll file a follow-up issue if you'd prefer.

@indirectlylit
Copy link
Contributor

indirectlylit commented Nov 16, 2021

@jtamiace

in the mockup they're 40px

was this also the case for the non-nested selectors?

@jtamiace
Copy link
Member

non-nested selectors

What is this referring to?

@indirectlylit
Copy link
Contributor

Like this one, where there are only "headers" but no child elements:

image

@jtamiace
Copy link
Member

Oh, yes, it'd be the same

@rtibbles
Copy link
Member

Going to merge this, let's file follow up issues (although I'm not sure what the precise issue would be).

@rtibbles rtibbles merged commit a98597a into learningequality:release-v0.15.x Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

TODO: needs review Waiting for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sub-category chooser does not have hover states or keyboard nav

4 participants