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

Update aria-only class to have absolute positioning #1243

Merged
merged 1 commit into from
Oct 27, 2017

Conversation

JHilker
Copy link

@JHilker JHilker commented Sep 22, 2016

When the component is restyled using flex, the width of the aria-only box causes the width of the Select-multi-value-wrapper to fluctuate when clicking into the input, and starting to type. Making this position: absolute removes it from the flow of flex, and thus solves this issue.

This seems to be a standard way to do this, while keeping it accessible. See:
http://a11yproject.com/posts/how-to-hide-content/
http://itstiredinhere.com/accessibility/

Error case:
image

When the component is restyled using flex, the width of the aria-only box causes
the width of the `Select-multi-value-wrapper` to fluctuate when clicking into
the input, and starting to type. Making this `position: absolute` removes it from
the flow of flex, and thus solves this issue.

This seems to be a standard way to do this, while keeping it accessible. See:
http://a11yproject.com/posts/how-to-hide-content/
http://itstiredinhere.com/accessibility/
@coveralls
Copy link

Coverage Status

Coverage remained the same at 93.014% when pulling 6b3a763 on JHilker:better-aria-hidden into 2b14448 on JedWatson:master.

@gwyneplaine
Copy link
Collaborator

gwyneplaine commented Oct 27, 2017

Thanks @JHilker this has been merged into master

@gwyneplaine gwyneplaine merged commit 099a826 into JedWatson:master Oct 27, 2017
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.

None yet

3 participants