Wk-notes-01-08-live-region-react-test-lib
Last updated
Was this helpful?
Last updated
Was this helpful?
ARIA live regions fill this gap and provide a way to programmatically expose dynamic content changes in a way that can be announced by assistive technologies.
aria-live: to define a live region
aria-atomic: if the region is treated as a whole when updated, e.g. <div>Value: <span>${value}</span></div>
Ref:
Live region in React:
A11y react testing
Change of mindset: from focus on implementation (Enzyme) to focus on behaviour (react-test-library)