Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LinkField is accessible #99

Closed
maxime-rainville opened this issue Sep 28, 2023 · 5 comments
Closed

LinkField is accessible #99

maxime-rainville opened this issue Sep 28, 2023 · 5 comments

Comments

@maxime-rainville
Copy link

maxime-rainville commented Sep 28, 2023

Story

As visually impaired content author, I want to be able to manage Links.

Some things to watch out for

  • should be able to tab through links and press enter to open the modal, even in read-only
  • opening the modal should give focus to the first field in the modal automatically
  • if closing or submitting the modal using the keyboard, focus should be returned to the button which would open the modal for that link (or to the "add link" button for new link modal)
  • Should be able to submit modal using the enter key when focus is on any text field
  • Should be able to reorder links with the keyboard.
  • Aria label should be present whenever an image/icon is used instead of text.

Acceptance criteria

  • Accessibility issues with LinkField are identified.
  • Simple issues are addressed.
  • Complex issues are spun up as separate card.

Exception

  • In some cases the LinkField maybe reusing other CMS UI elements that are not accessible (e.g. File Upload modal). Fixing those other elements is beyond the scope of this card.

Note

  • Since this is a one of the first time we do a proper accessibility review, we should take learning from this card into a retro topic.

New issues created

PRs

@maxime-rainville
Copy link
Author

Cassie said this should be a high priority.

@emteknetnz
Copy link
Member

emteknetnz commented Feb 7, 2024

Accessibility issues with LinkField are identified.

Going from https://govtnz.github.io/web-a11y-guidance/

Accessible UX best practices:

  • Colour and contract - Out of scope for this card - broader issue with CMS that should be dealt with in a CMS redesign
  • Designing documents for print - Not applicable for the CMS
  • Keyboard accessibility - Linked PR implements - I think LinkField should now be compliant with everything there?
  • Language of content - Out of scope for this card - broader issue with CMS, though I'm honestly not sure if it's an issue right now since we already have translatable support

Linked PR implements keyboard nav and I honestly don't know what else to look for accessibility issues with linkfield

Complex issues are spun up as separate card.

To meet the AC's I could spin up a new card to look at accessibility of the CMS in terms of colors / contrast / font sizes etc, though I'm not sure what value there is of that in isolation - I'd expect that sort of card would be created as part of a broader CMS design refresh epic

@emteknetnz emteknetnz removed their assignment Feb 7, 2024
@GuySartorelli
Copy link
Member

Might make sense to open a card to add behat tests for whatever scenarios you couldn't cover in jest

@emteknetnz
Copy link
Member

Have creating a new issue to use behat to test keyboard sorting #205

@sabina-talipova
Copy link
Contributor

Task is completed. PR's merged.

@sabina-talipova sabina-talipova removed their assignment Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants