Skip to content

fix(Select): Footer keyboard bugs#6844

Merged
nicolethoen merged 9 commits into
patternfly:mainfrom
tlabaj:select_footer_keyboard_bugs
Jan 25, 2022
Merged

fix(Select): Footer keyboard bugs#6844
nicolethoen merged 9 commits into
patternfly:mainfrom
tlabaj:select_footer_keyboard_bugs

Conversation

@tlabaj
Copy link
Copy Markdown
Contributor

@tlabaj tlabaj commented Jan 21, 2022

What: Closes #6485

Additional issues:
I also addressed some keyboard interaction issues for:

  • the footer with checkbox variant and filtering
  • the footer with favorites and typeahead select
  • the footer with checkbox and non checkbox filtering.

*Note: demos were added for testing purposes only

@patternfly-build
Copy link
Copy Markdown
Collaborator

patternfly-build commented Jan 21, 2022

Copy link
Copy Markdown
Contributor

@nicolethoen nicolethoen left a comment

Choose a reason for hiding this comment

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

Just a quick question. Otherwise - as far I was able to hammer on it, it seems to work :)

direction={direction}
footer={<Button variant="link" isInline>Action</Button>}
footer={ <>
<Button tabIndex={1} variant="link" isInline>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this a requirement to add a tabIndex? should we call that out in the docs?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Upon testing - it doesn't seem to be a requirement - but it in an interesting choice. Could you explain the goal?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

nope.

Copy link
Copy Markdown
Member

@dlabrecq dlabrecq left a comment

Choose a reason for hiding this comment

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

The keyboard navigation seems to skip over the "Miss." option and either lands on "Mrs" or "Mrs". That is, when I click on the select first, then navigate using the up/down arrow.

It's not clear that tab was required to navigate to the footer. I was expecting to use the up/down arrow keys to navigate to the footer (i.e., considering I was already navigating within the menu).

Comment on lines +2403 to +2407
footer={ <>
<Button variant="link" isInline>
Action
</Button>
</>}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Curious about the empty tag, I recall this did not work with PF docs. Has it been enabled?

That said, an empty tag doesn't seem necessary here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Correct. I was testing with two buttons and the empty tag was a left over.
I am not apply to reproduce the issue with skipping the "Miss"

Copy link
Copy Markdown
Collaborator

@wise-king-sullyman wise-king-sullyman left a comment

Choose a reason for hiding this comment

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

There are some items in here that I think would ideally be better abstracted into separate functions, but given that similar patterns are followed throughout this component I'm not willing to hold up approval for it. Everything seems to work well based on my testing.

Copy link
Copy Markdown
Contributor

@thatblindgeye thatblindgeye left a comment

Choose a reason for hiding this comment

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

In terms of the changes made to fix the issue at hand, things look good/work well from the preview build! I would also agree with Austin's comment, but considering the issue has been fixed I will put an approval in as well.

Copy link
Copy Markdown
Contributor

@jessiehuff jessiehuff left a comment

Choose a reason for hiding this comment

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

This seems pretty good. I feel uncertain about Tab navigating the checkbox select examples, but I noticed that it's also on the surge preview site so it's likely unrelated to this PR. Also, talking to Jenn, she thinks that's probably fine given that checkboxes can be seen as different to users than normal menu items so having both might be ok. This one seems subjective.
In terms of clicking on the toggle and then using arrow keys, I don't think that's been implemented in Select and is separate, right? I remember creating an issue for that here. It seems to work ok otherwise for keyboard and VO.

@nicolethoen nicolethoen merged commit 7f06125 into patternfly:main Jan 25, 2022
@patternfly-build
Copy link
Copy Markdown
Collaborator

Your changes have been released in:

  • eslint-plugin-patternfly-react@4.31.9
  • @patternfly/react-catalog-view-extension@4.43.9
  • @patternfly/react-charts@6.45.9
  • @patternfly/react-code-editor@4.33.9
  • @patternfly/react-console@4.43.9
  • @patternfly/react-core@4.192.9
  • @patternfly/react-docs@5.53.9
  • @patternfly/react-icons@4.43.9
  • @patternfly/react-inline-edit-extension@4.37.9
  • demo-app-ts@4.152.9
  • @patternfly/react-integration@4.154.9
  • @patternfly/react-log-viewer@4.37.9
  • @patternfly/react-styles@4.42.9
  • @patternfly/react-table@4.61.9
  • @patternfly/react-tokens@4.44.9
  • @patternfly/react-topology@4.39.9
  • @patternfly/react-virtualized-extension@4.39.9
  • transformer-cjs-imports@4.30.9

Thanks for your contribution! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(Select): Unable to access footer button's via tab key

7 participants