Skip to content
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: row navigation in Table #1231

Merged
merged 13 commits into from
Oct 8, 2020
Merged

feat: row navigation in Table #1231

merged 13 commits into from
Oct 8, 2020

Conversation

jacobdevera
Copy link
Contributor

@jacobdevera jacobdevera commented Oct 3, 2020

Description

Known Issues

@jacobdevera jacobdevera added the A11y Accessiblity label Oct 3, 2020
@jacobdevera jacobdevera self-assigned this Oct 3, 2020
@netlify
Copy link

netlify bot commented Oct 3, 2020

Deploy preview for fundamental-react ready!

Built with commit 55c6313

https://deploy-preview-1231--fundamental-react.netlify.app

@jacobdevera jacobdevera requested review from meganaconley, Mike-Diaz and a team October 3, 2020 00:33
@jacobdevera jacobdevera marked this pull request as ready for review October 3, 2020 00:33
const navigatedVertically = (key === keycode.codes.up || key === keycode.codes.down) && row > 0;

if (navigatedVertically) {
newInstructionsText += `${localizedText.row} ${row} `;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this string needs to have the row number as a variable rather than concatenated. This wouldn't be grammatical in some other languages. Same for column.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decided to remove the row and column numbers as screen readers still give that information anyway when using the built-in table navigation keys (ctrl+option/alt+arrow on VO and JAWS). And it doesn't seem prudent to try and work in a localization system that supports variables right now.

if (keyboardNavigation !== 'row') {
newInstructionsText += `${localizedText.arrowKeys} `;
} else {
newInstructionsText += `${localizedText.rowArrowKeys} ${localizedText.rowSelection} ${localizedText.rowClick}`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar comment here about concatenating localized strings.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decided to combine the row instructions into a single prop to prevent concatenation.

Copy link
Contributor

@meganaconley meganaconley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Localized text changes looks good and keyboard handling works well

@jacobdevera jacobdevera merged commit de8af5b into master Oct 8, 2020
@jacobdevera jacobdevera deleted the feat/vertical-nav branch October 8, 2020 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A11y Accessiblity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants