Accessibility and Usability Enhancements for the VoiceCapture #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Pull Request improves the
VoiceCapture
component in Angular by implementing several accessibility features and adding a new clipboard integration for better usability.Changes Implemented
Added
aria-modal
androle="dialog"
aria-modal="true"
attribute androle="dialog"
to the main container (<section>
) when the component is active. This informs assistive technologies that the content is presented as a modal, restricting the focus to elements inside the dialog.Added
aria-expanded
Attributearia-expanded
attribute with dynamic values (true
orfalse
) based on the state of thestart
signal. This indicates whether the voice capture modal is open or closed, improving clarity for screen reader users.Enhanced ARIA Labels
aria-label
) using translations for "Start voice capture" and "Close voice capture," making the component's purpose clearer for assistive technologies.Clipboard Integration
clipboard
input property is set totrue
. This enhances usability by allowing users to easily copy the voice capture results.