Skip to content

Conversation

@bmcmahen
Copy link
Contributor

I needed focus feedback in segmented controls for accessibility purposes... so here's my quick solution. Just noticed that this should address #229.

@jeroenransijn
Copy link
Contributor

Awesome @bmcmahen! Could you provide a gif or screenshot of the result?

@bmcmahen
Copy link
Contributor Author

bmcmahen commented Jul 19, 2018

here ya go

segmented-controls-focus

I think this is the proper behaviour for accessibility. When working through a form using tabs it focuses on the selected radio button initially. Left - right keys shift both focus and radio selection. And the selected state remains when focus shifts to somewhere else on the page. The actual shadow used already existed in your code.

@jeroenransijn jeroenransijn merged commit 0c4b6bf into segmentio:master Jul 20, 2018
@jeroenransijn
Copy link
Contributor

I will have to move this in v4 as well!

@jeroenransijn
Copy link
Contributor

evergreen-ui 3.2.5 published

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.

2 participants