Skip to content

fix(various): IFD accessibility call-outs#595

Merged
rebeccaalpert merged 3 commits intopatternfly:mainfrom
rebeccaalpert:a11y-ifd
Aug 11, 2025
Merged

fix(various): IFD accessibility call-outs#595
rebeccaalpert merged 3 commits intopatternfly:mainfrom
rebeccaalpert:a11y-ifd

Conversation

@rebeccaalpert
Copy link
Copy Markdown
Member

@rebeccaalpert rebeccaalpert commented Jul 3, 2025

This hits some of the accessibility issues flagged by IFD. Some don't apply to us and a couple (jump link behavior) would require conversation with design I think, since the intended behavior is to have them disappear at bottom and top respectively. You can still access both via the rotor if visible even if they aren't easy to tab to.

@patternfly-build
Copy link
Copy Markdown

patternfly-build commented Jul 3, 2025

@rebeccaalpert rebeccaalpert force-pushed the a11y-ifd branch 3 times, most recently from 8c01ced to 93e8e7c Compare July 11, 2025 16:35
@rebeccaalpert rebeccaalpert linked an issue Jul 11, 2025 that may be closed by this pull request
12 tasks
@rebeccaalpert rebeccaalpert marked this pull request as ready for review July 11, 2025 16:37
@rebeccaalpert
Copy link
Copy Markdown
Member Author

Surge preview here since PR was pre-token-refresh: http://enchanted-basil.surge.sh/

Copy link
Copy Markdown
Collaborator

@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.

Also for the items from the issue:

  • "Close button activation should not disrupt expected focus order" - not sure if I'm noticing this issue, but if we aren't explicitly handling focus in examples (or component code) to move focus from the convo history drawer close button back to the convo history menu toggle, we should do that
  • "“New chat” button should not disrupt expected focus order" - same as above here + just some documentation that what to focus upon clicking "new chat" may depend, i.e. maybe the expectation is that focus goes to the chat text input so you can quickly start typing without having to Tab around

Was a little confused by these two, though, as it seems like sometimes focus does go where I'd expect, sometimes not.

{...drawerPanelContentProps}
>
{announcement && (
<div className="pf-chatbot__filter-announcement" aria-live="polite">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We should consider removing either the arialive on this new div, or on DrawerPanelContent.

We should also move this div to come after the search input in the DOM. Rihgt now the traversal is a bit weird because I can have announced this live region text from VO before I even get to the search input, and the context of this announcement would be more beneficial immediately after the input.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

All set!

totalCount === 1
? `${totalCount} conversation matches "${value}"`
: `${totalCount} conversations match "${value}"`;
setAnnouncement(newAnnouncement);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

More of a nit since it's example code, but it might be good to maybe have a debounce when setting this announcement text. Granted it may be due to the dual live regions in the component code as well, but when trying to search "red" in the example, VO stops to tell me the results for just "r"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I gave this a go! Let me know what you think.

…ous a11y fixes

Adjusted default text to match visible text and provide more context. Jump buttons now also allow more customization via prop passage. The history drawer can also make announcements when content changes.
@rebeccaalpert
Copy link
Copy Markdown
Member Author

rebeccaalpert commented Aug 6, 2025

Pushed PR feedback to http://enchanted-basil.surge.sh/.

@rebeccaalpert rebeccaalpert merged commit 4205f8e into patternfly:main Aug 11, 2025
6 of 7 checks passed
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 6.4.0-prerelease.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

rebeccaalpert added a commit to rebeccaalpert/virtual-assistant that referenced this pull request Oct 24, 2025
Adjusted default aria-labels on history button, search box label, jump buttons. Jump buttons now also allow more customization via prop passage. The history drawer can also make announcements when content changes (demo included).
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.

Accessibility updates flagged by IFD

3 participants