-
I'm trying to implement a column of menu buttons to allow editing/deleting rows. That column is not supposed to have a visible label. Here's what I've tried:
What do you suggest? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
One way is, instead of placing the buttons in their own column, just place them in the adjacent cell with that column's content and visually separate the content and the button (flex justify space between). Another way we've accomplished this is to put a focusable but visually hidden element in the column header with an aria-label. This way it still gets focus and can have a tooltip for keyboard navigating users. Though we use this pattern less frequently than the first because it can make resizing look a little odd with our design. |
Beta Was this translation helpful? Give feedback.
Thanks, I ended up making the label for our
TableColumn
component mandatory, but added ahideLabel
prop which causes the label to be wrapped with<VisuallyHidden>
so it works normally for assistive tech but is hidden visually.