- Welcome
- Getting started
- Latest updates
- Foundations
-
Components
- Accordion
- Alert
- Alignment
- Aria live
- Autosuggest
- Badge
- Banner alert
- Bar chart
- Blockquote
- Bottom navigation
- Bottom sheet
- Breadcrumb
- Breakpoint
- Button
- Calendar
- Card
- Card List
- Card button
- Carousel
- Checkbox
- Chip
- Chip group
- Code
- Content cards
- Data Table
- Datepicker
- Description list
- Dialog
- Divider
- Drawer
- Field Set
- Flare
- Flat list
- Flight leg
- Floating action button
- Floating notification
- Form label
- Form validation
- Graphic promotion
- Horizontal navigation
- Icon
- Image
- Infinite scroll
- Link
- List
- Map
- Mobile scroll container
- Modal
- Navigation bar
- Nudger
- Overlay
- Page indicator
- Pagination
- Panel
- Phone input
- Picker
- Popover
- Price
- Progress bar
- Radio button
- Rating
- Scrollable calendar
- Section header
- Section list
- Select
- Skeleton
- Skip link
- Slider
- Snackbar
- Snippet
- Spinner
- Split input
- Star rating
- Switch
- Table
- Text
- Text input
- Theming
- Ticket
- Toast
- Tooltip
- Touchable native feedback
- Touchable overlay
- Content
- Accessibility
Aria live
ARIA live regions are used to notify assistive technologies of changing content.
About ARIA live regions
It's common for pages to update without the content reloading completely. For example, a list of filters changing or an alert appearing. These changes are usually visually apparent but may not be obvious to users of assistive technologies.
ARIA live regions fill this gap by providing a way to expose dynamic content changes in a way that can be announced by assistive technologies.
Backpack's ARIA live component is a light wrapper that creates an ARIA live region and sets sensible defaults for how it should function.
Default
By default, the ARIA live component is visually hidden and can only be seen by assistive technologies.
In this example, as the chips are toggled on and off, text describing the changes appears in the ARIA live region below them. Ordinarily this would be only visible to assistive technologies, but for demonstration purposes the visible prop has been supplied to the component to make it visible to all.
Visible
Sometimes it's necessary for an ARIA live region to be visible to everyone, not just assistive technologies. Thevisible prop is available for these use cases.
Additional resources
Mozilla's developer network has some excellent resources on how to use ARIA live regions correctly. Mozilla: ARIA live regions
ARIA roles can be difficult to understand at first. If you need help at any point, please speak to Skyscanner's internal Accessibility Guild who can advise on best practices.
Made with ❤️ by Skyscanner © 2023
© 2023 Skyscanner Backpack. Page last updated on Nov 2, 2022, 17:30