Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

fix(modal): making modal content items focusable #5918

Merged

Conversation

mathisscott
Copy link
Contributor

• previously modal content could not be focused using the tab key
• this included form fields and buttons in the content area of a modal
• this fixes that issue by changing the modal content wrapper's tabindex to 0
• ...and setting delegatesFocus to true

Signed-off-by: Scott Mathis smathis@vmware.com

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • If applicable, have a visual design approval

PR Type

What kind of change does this PR introduce?

Users can now tab down into the modal-content area.

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • clarity.design website / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Right now, users can't tab down into the modal-content area's shadow DOM.

What is the new behavior?

Now they can.

Does this PR introduce a breaking change?

  • Yes
  • No

• previously modal content could not be focused using the tab key
• this included form fields and buttons in the content area of a modal
• this fixes that issue by changing the modal content wrapper's tabindex to 0
• ...and setting delegatesFocus to true

Signed-off-by: Scott Mathis <smathis@vmware.com>
@mathisscott mathisscott requested review from gnomeontherun and jeeyun and removed request for jeeyun and gnomeontherun April 30, 2021 21:38
@mathisscott mathisscott merged commit 1d99f85 into vmware-archive:next Apr 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants