Skip to content

Commit

Permalink
Merge pull request #239 from rebeccaalpert/a11y-223
Browse files Browse the repository at this point in the history
fix(MicrophoneButton): Tooltip should be an aria-live region
  • Loading branch information
nicolethoen authored Oct 14, 2024
2 parents b673e28 + c1ede53 commit b72fad5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/module/src/MessageBar/MicrophoneButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ export const MicrophoneButton: React.FunctionComponent<MicrophoneButtonProps> =

return (
<Tooltip
aria="none"
aria-live="polite"
id="pf-chatbot__tooltip--use-microphone"
content={isListening ? 'Stop listening' : 'Use microphone'}
position={tooltipProps?.position || 'top'}
Expand Down

0 comments on commit b72fad5

Please sign in to comment.