-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: cell-level keyboard navigation for Table #1211
Conversation
Deploy preview for fundamental-react ready! Built with commit f65aedd |
src/Table/Table.js
Outdated
className={tableClasses} | ||
ref={tableRef} | ||
role={keyboardNavigation ? 'grid' : 'table'}> | ||
<caption aria-live='polite' className='fd-table__instructions' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is __instructions
intentional? In fd-styles the class for <caption>
appears as fd-table__caption
. Currently the text is visible when traversing through the cells.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided to change it to __caption
in the end, but didn't put that change here yet. Thanks for catching that.
This reverts commit 262b97d.
…/table-navigation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some a11y stuff:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some missing props and typos.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🥇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Keyboard nav works as expected!
Description
Pending update of
fundamental-styles
to incorporate this PR SAP/fundamental-styles#1661 to hide screen reader instructionsEnter
to toggle 'edit mode': in edit mode, all tabbable fields can be navigated to with the Tab keyEsc
to exit edit modecompact
,condensed
,keyboardNavigation
, andlocalizedText
propsaria-live
region for announcing table statusOut of Scope / Known Issues (to be created)
Select
should be full-width in cells (likely requires prop passing by putting into aFormGroup
to apply full-width styling)DatePicker
popover when opened from a cell appears to gradually shift off-screen when changing months; this doesn't happen with the DatePicker alone