Skip to content

fixes #721 : added context change to accordin in docs-view#2939

Merged
snide merged 12 commits intoelastic:masterfrom
anishagg17:td
Feb 28, 2020
Merged

fixes #721 : added context change to accordin in docs-view#2939
snide merged 12 commits intoelastic:masterfrom
anishagg17:td

Conversation

@anishagg17
Copy link
Copy Markdown
Contributor

@anishagg17 anishagg17 commented Feb 27, 2020

Summary

Fixes: #721
added context change to accordin in docs-view

Screenshot

Screenshot 2020-02-27 at 11 30 16 AM

Checklist

  • Check against all themes for compatibility in both light and dark modes
  • Checked in mobile
  • Checked in IE11 and Firefox
  • Props have proper autodocs
  • Added documentation 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

@kibanamachine
Copy link
Copy Markdown

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@chandlerprall
Copy link
Copy Markdown
Contributor

@myasonik any recommendations here? In its current configuration, VoiceOver doesn't re-read the updated button text; throwing aria-live="assertive" on both buttons makes the decrease height button re-read every time.

My gut says we'd need to track focus and only apply aria-live to the focused button, which doesn't seem worth the effort on this small docs section.

Copy link
Copy Markdown
Contributor

@myasonik myasonik left a comment

Choose a reason for hiding this comment

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

I actually think this is fine. The expectation is that the button worked and the user can choose to reread it if they choose to and get more clarity.

To really become a stellar example, I added a couple of code comments. To summarize:

  • we add aria-controls to the button and point them to the list of items (aria-controls doesn't have stellar support so it can't be relied on but it also don't hurt so there's really only upside though limited)
  • we add aria-describedby to the button to explain the current state (the description can also be reread separately from the current item which may be an easier shortcut for some users)

anishagg17 and others added 6 commits February 28, 2020 02:26
Co-Authored-By: Michail Yasonik <michail@yasonik.com>
Co-Authored-By: Michail Yasonik <michail@yasonik.com>
Co-Authored-By: Michail Yasonik <michail@yasonik.com>
Co-Authored-By: Michail Yasonik <michail@yasonik.com>
Co-Authored-By: Michail Yasonik <michail@yasonik.com>
@anishagg17
Copy link
Copy Markdown
Contributor Author

@myasonik Changes Done 👍

Copy link
Copy Markdown
Contributor

@myasonik myasonik left a comment

Choose a reason for hiding this comment

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

Double approved!

@snide snide merged commit 3550df4 into elastic:master Feb 28, 2020
@snide
Copy link
Copy Markdown
Contributor

snide commented Feb 28, 2020

Thanks for the PR @anishagg17

@anishagg17 anishagg17 deleted the td branch February 28, 2020 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Increase Height" and "Decrease Height" buttons should provide context change information

5 participants