Skip to content

Deprecating EuiKeyboardAccessible - #4135

Merged
myasonik merged 9 commits into
elastic:masterfrom
myasonik:deprecate-EuiKeyboardAccessible
Oct 19, 2020
Merged

myasonik merged 9 commits into
elastic:masterfrom
myasonik:deprecate-EuiKeyboardAccessible

Conversation

@myasonik

@myasonik myasonik commented Oct 14, 2020 •

Copy link
Copy Markdown
Contributor

Summary

Closes #3838. After this PR is merged, should update the deprecation schedule to include removing EuiKeyboardAccessible and create another issue for addressing EuiBasicTable's a11y issues which are outside the scope of this deprecation.

Adds docs about deprecation

Screenshot of EUI docs for EuiKeyboardAccessible

Fixes EuiCodeEditor

Though EuiCodeEditor didn't use EuiKeyboardAccessible, because it mentioned it in the comments, it came up in this work. It used EuiKeyboardAccessible as a template for how to fix a problem that was better fixed other ways.

Fixes EuiStepsHorizontal

While removing the use of EuiKeyboardAccessible, also took the opportunity to fix up a few other a11y issues with the component, simplify its semantics, and align its string usage across all instances.

Ignores EuiBasicTable

EuiBasicTable uses EuiKeyboardAccessible but unwinding that decision would be a whole can of worms. To deprecate EuiKeyboardAccessible as quickly as possible, pushing off any EuiBasicTable work till a decision on how to deal with it can be reached.

Checklist

  • Check against all themes for compatibility in both light and dark modes
  • Checked in mobile
  • Checked in Chrome, Safari, Edge, and Firefox
  • Props have proper autodocs
  • Added documentation
  • Checked Code Sandbox works for the any docs examples
  • Added or updated jest tests
  • Checked for breaking changes and labeled appropriately
  • Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

@myasonik myasonik added accessibility deprecations PRs that contains deprecations. Add them to the deprecations meta ticket after merge. labels Oct 14, 2020
@kibanamachine

Copy link
Copy Markdown
Contributor

@myasonik
myasonik force-pushed the deprecate-EuiKeyboardAccessible branch from c0c515f to f7cdaf4 Compare October 15, 2020 15:04
@myasonik
myasonik force-pushed the deprecate-EuiKeyboardAccessible branch from f7cdaf4 to eed5d59 Compare October 15, 2020 15:05
@myasonik
myasonik marked this pull request as ready for review October 15, 2020 15:05
@kibanamachine

Copy link
Copy Markdown
Contributor

Comment thread CHANGELOG.md Resolved
Comment thread CHANGELOG.md Resolved
Comment thread src/components/steps/step_number.tsx Resolved
@kibanamachine

Copy link
Copy Markdown
Contributor

@kibanamachine

Copy link
Copy Markdown
Contributor

@kibanamachine

Copy link
Copy Markdown
Contributor

@myasonik
myasonik requested review from cchaos and thompsongl October 15, 2020 21:24

@thompsongl thompsongl left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Couple small things
+1 to finding a way around the li click event pass-through

Comment thread src/components/steps/step_strings.tsx Resolved
Comment thread CHANGELOG.md Resolved
@myasonik
myasonik requested a review from thompsongl October 16, 2020 22:00
@cchaos

cchaos commented Oct 19, 2020

Copy link
Copy Markdown
Contributor

One thing real quick is that CI is throwing this error because you probably forgot to change a token key when copy/pasting.

18:26:55 Token euiStepStrings.warning has two differing defaults:
18:26:55 Step {number} has warnings
18:26:55 Step {number}: {title} has warnings

@cchaos cchaos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The EuiStep rendering issues all seem to be fixed and display as they did before. 👍 CI is having some issues though, so be sure to fix those.

Comment thread CHANGELOG.md Resolved

@thompsongl thompsongl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to merge after these changes

Comment thread src/components/steps/step_strings.tsx Resolved
Comment thread src/components/steps/step_strings.tsx Resolved
Comment thread src/components/steps/step_strings.tsx Resolved
Co-authored-by: Caroline Horn <[email protected]>
Co-authored-by: Greg Thompson <[email protected]>
@kibanamachine

Copy link
Copy Markdown
Contributor

Comment thread CHANGELOG.md Resolved
Co-authored-by: Caroline Horn <[email protected]>
@kibanamachine

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accessibility deprecations PRs that contains deprecations. Add them to the deprecations meta ticket after merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[EuiKeyboardAccessible] Discuss deprecation

4 participants