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.
Description
This PR adds the LiveRegion Service & Component. The live region component is invisible by default, but any messages pushed to the service are added to the component so screen readers can announce the message.
By itself this PR does very little but is intended as building block for issues such as #1271 and #3154.
Instructions for Reviewers
At the moment of this PR, the functionality of the live region is not used by any component so to test it a reviewer will have to do this manually.
config.dev.yml
(or equivalent) addliveRegion: isVisible: true
to make the live region visible at the bottom of the page.One option to quickly test the region is to add the following code to the body of the
live-region.component.ts
:This will add the message "Click!" to the live region every time the reviewer clicks the mouse button.
CheckList
yarn lint
yarn check-circ-deps
)User interface changes must align with Accessibility guidelinesnot applicablePRs must use i18n (internationalization) keys instead of hardcoded English text, to allow for translations.not applicableIf a PR includes new libraries/dependencies (innot applicablepackage.json
), then their software licenses must align with the DSpace BSD License based on the Licensing of Contributions documentation.