Skip to content

Conversation

@nikkimk
Copy link
Contributor

@nikkimk nikkimk commented Mar 7, 2023

What I did

  1. Added an optional parameter to roving-tabindex-controller's initItems() to limit keydown listener to a specific container element instead of host
  2. Removed aria-expanded=true from horizontalyOnly keyboard navigation

Testing Instructions

Since this is a controller, the way I had to test it was to temporarily do the following:

  1. Copy the updated roving-tabindex-controller.js to pf-tabs and pf-jumplinks element folders.
  2. Change the import path in pf-tabs/BaseTabs.js and pf-jumplinks/pf-jumplinks.js to ./roving-tabindex-controller.js.
  3. Determine that these changes do not break tabs and jumplinks.
  4. Undo your changes.

@nikkimk nikkimk added accessibility Improve accessibility bug labels Mar 7, 2023
@nikkimk nikkimk linked an issue Mar 7, 2023 that may be closed by this pull request
@changeset-bot
Copy link

changeset-bot bot commented Mar 7, 2023

🦋 Changeset detected

Latest commit: 2194a4b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@patternfly/pfe-core Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the AT passed Automated testing has passed label Mar 7, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2023

Deploy Preview for patternfly-elements ready!

Name Link
🔨 Latest commit 2855eb8
😎 Deploy Preview https://deploy-preview-2410--patternfly-elements.netlify.app/

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

@nikkimk nikkimk requested a review from bennypowers March 16, 2023 14:24
Copy link
Member

@bennypowers bennypowers left a comment

Choose a reason for hiding this comment

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

we should save the state in hostDisconnected, or at least not destroy it in hostConnected, OR we should make it clear to users that this is how they need to hold it

nikkimk and others added 3 commits March 16, 2023 11:00
Co-authored-by: Benny Powers <bennypowers@users.noreply.github.com>
….com:patternfly/patternfly-elements into fix/roving-tabindex-controller/aria-expanded
@nikkimk nikkimk requested a review from bennypowers March 16, 2023 15:29
.bind() creates a new object on each call, so we can't use it to removeEventListener.

Also makes the itemsContainer default to the host at each initItems call
@bennypowers bennypowers enabled auto-merge (squash) March 16, 2023 15:58
@bennypowers bennypowers merged commit e45f5eb into main Mar 16, 2023
@bennypowers bennypowers deleted the fix/roving-tabindex-controller/aria-expanded branch March 16, 2023 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accessibility Improve accessibility AT passed Automated testing has passed bug ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

roving-tabindex-controller ignores for expandable items

3 participants