1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-22 16:29:09 +01:00

Update table docs in Storybook (#5981)

* updated table docs

* fix typo
This commit is contained in:
Danielle Flinn 2023-08-18 11:47:32 -07:00 committed by GitHub
parent 5665576147
commit f2cd8dd90d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,8 @@ The UI component consists of a couple of elements.
- Always include a row or column header with your table; this allows screen readers to better - Always include a row or column header with your table; this allows screen readers to better
contextualize the data. contextualize the data.
- Avoid spanning data across cells. - Avoid spanning data across cells.
- When a cell contains an interactive element, the whole cell should be selectable and trigger the
action not just the element the cell contains.
- Be sure to make repeating actions unique by associating them with the object they relate to. - Be sure to make repeating actions unique by associating them with the object they relate to.
Example: if there are multiple “Edit” buttons on a table, a screen reader should read “Edit, Example: if there are multiple “Edit” buttons on a table, a screen reader should read “Edit,
Netflix” for an edit option for a Netflix item. Netflix” for an edit option for a Netflix item.