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

fix: custom focus management #1572

Merged
merged 2 commits into from
Mar 10, 2023
Merged

fix: custom focus management #1572

merged 2 commits into from
Mar 10, 2023

Conversation

ColinBuyck
Copy link
Collaborator

@ColinBuyck ColinBuyck commented Mar 8, 2023

Pull Request Template

Issue Overview

This PR addresses #1562

  • This change addresses the issue in full
  • This change addresses only certain aspects of the issue
  • This change is a dependency for another issue
  • This change has a dependency from another issue

Description

This PR tailors the focus behavior on the rental finder form to better communicate changes in the form section. Now when clicking next or previous results in a change in form section, the focus should land on the step header rather than the question text. If navigating between questions within the same section, the focus still lands on the question text.

How Can This Be Tested/Reviewed?

This can be tested by going through the rental finder form with screen reader enabled and noticing where the focus lands after clicking next or previous. This behavior should also be verified on NVDA.

Checklist:

  • My code follows the style guidelines of this project
  • I have added QA notes to the issue with applicable URLs
  • I have performed a self-review of my own code
  • I have reviewed the changes in a desktop view
  • I have reviewed the changes in a mobile view
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have assigned reviewers
  • I have run yarn generate:client and/or created a migration if I made backend changes that require them
  • I have exported any new pieces added to ui-components
  • My commit message(s) is/are polished, and any breaking changes are indicated in the message and are well-described
  • Commits made across packages purposefully have the same commit message/version change, else are separated into different commits

Reviewer Notes:

Steps to review a PR:

  • Read and understand the issue, and ensure the author has added QA notes
  • Review the code itself from a style point of view
  • Pull the changes down locally and test that the acceptance criteria is met
  • Also review the acceptance criteria on the Netlify deploy preview (noting that these do not yet include any backend changes made in the PR)
  • Either explicitly ask a clarifying question, request changes, or approve the PR if there are small remaining changes but the PR is otherwise good to go

On Merge:

If you have one commit and message, squash. If you need each message to be applied, rebase and merge.

@netlify
Copy link

netlify bot commented Mar 8, 2023

Deploy Preview for detroit-public-dev ready!

Name Link
🔨 Latest commit 4da9476
🔍 Latest deploy log https://app.netlify.com/sites/detroit-public-dev/deploys/64095db74d57e10007d006a7
😎 Deploy Preview https://deploy-preview-1572--detroit-public-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Mar 8, 2023

Deploy Preview for detroit-partners-dev ready!

Name Link
🔨 Latest commit 4da9476
🔍 Latest deploy log https://app.netlify.com/sites/detroit-partners-dev/deploys/64095db7a574a70008f388c9
😎 Deploy Preview https://deploy-preview-1572--detroit-partners-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Mar 8, 2023

Deploy Preview for detroit-storybook-dev ready!

Name Link
🔨 Latest commit 4da9476
🔍 Latest deploy log https://app.netlify.com/sites/detroit-storybook-dev/deploys/64095db72e65e9000881c154
😎 Deploy Preview https://deploy-preview-1572--detroit-storybook-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@ColinBuyck ColinBuyck marked this pull request as ready for review March 9, 2023 04:17
@emilyjablonski
Copy link
Collaborator

@ColinBuyck Let me know if you're not getting this behavior, but I'm in VoiceOver and it all looks great until I get to the first 3/3 page. It "focuses" on the 3/3 appropriately but doesn't read anything, and if I move to go to the next element it skips most of the card content all together and goes to skip this and show me listings.

@ColinBuyck
Copy link
Collaborator Author

@emilyjablonski Hmm I'm not able to reproduce this one locally or on the preview 😕 does it happen on both for you?

Copy link
Collaborator

@emilyjablonski emilyjablonski left a comment

Choose a reason for hiding this comment

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

⌨️

@ColinBuyck ColinBuyck merged commit 5b1aadb into dev Mar 10, 2023
@ColinBuyck ColinBuyck deleted the 1562/form-instruction-sr branch March 10, 2023 18:27
ludtkemorgan pushed a commit that referenced this pull request Mar 10, 2023
* fix: custom focus management

* fix: clean up + commenting
ludtkemorgan added a commit that referenced this pull request Mar 15, 2023
* fix: reset focus for NVDA (#1556)

* fix: first attempt to reset focus for nvda

* fix: attemmpt with asPath approach

* fix: reset focus in application file

* fix: missing tabIndex value

* fix: hidden new page approach

* fix: new page with state

* fix: functional navigation announcement

* fix: cleaned up css approach

* fix: remove unused css

* fix: remove space typo

* fix: nvda testing without alert

* fix: re-instate alert

* fix: simpler solution for cross browser support

* fix: remove alert since focused

* fix: announcement clean up

* fix: variable naming

* fix: announcement updates pr LH feedback

* fix: heading level typo

* fix: clean up string handling

* fix: clean up rebase

* feat: change labels for no min/max rent (#1569)

* fix: release ux issues (#1571)

* refactor: uptake uic siteheader (#1565)

* fix: show all listings button labels (#1568)

* feat: add meaningful labels to filter buttons

* feat: change reset button label

* fix: add missing filter translations for spanish

* fix: cherry-picked forgot-password from core (#1566)

* fix: cherry-picked commit from core

* fix: update testing approach to mirror core

* fix: undo core test mirroring

* fix: resolve testing error

* fix: revert unrelated changes

* fix: space cleanup

* fix: space cleanup pt 2

* fix: translations added

* fix: custom focus management (#1572)

* fix: custom focus management

* fix: clean up + commenting

* fix: remove auto fix from linter

* fix: add missing screen reader only  labels to fields (#1573)

* fix: update to community type draggability (#1578)

* fix: description grid misalignment (#1581)

* fix: description grid misalignment

* fix: description misalignment

---------

Co-authored-by: ColinBuyck <53269332+ColinBuyck@users.noreply.github.com>
Co-authored-by: Krzysztof Zięcina <kriss.kontakt@gmail.com>
Co-authored-by: Emily Jablonski <65367387+emilyjablonski@users.noreply.github.com>
Co-authored-by: Yazeed Loonat <YazeedLoonat@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants