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

Add button focus style #838

Merged
merged 1 commit into from
May 19, 2017
Merged

Add button focus style #838

merged 1 commit into from
May 19, 2017

Conversation

ellatrix
Copy link
Member

@ellatrix ellatrix commented May 18, 2017

See #574. Also #520.

@ellatrix
Copy link
Member Author

ellatrix commented May 18, 2017

Noticed that buttons don't have a focus styles while testing tabbing. cc @afercia

@ellatrix ellatrix added the [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). label May 18, 2017
@afercia
Copy link
Contributor

afercia commented May 19, 2017

Right. Any focusable control should have a focus style, see #574

@jasmussen
Copy link
Contributor

❤️ that you're working on this. It's already much better in this branch.

Design wise — and perhaps @afercia can advise here as well: is it better to have only the focus rectangle to indicate highlight, or would it be good to combine it with something like the hover style also?

@ellatrix
Copy link
Member Author

Might it be good to keep the focus style the same in all of WordPress?

@jasmussen
Copy link
Contributor

Might it be good to keep the focus style the same in all of WordPress?

Absolutely! Good point.

@ellatrix ellatrix requested a review from jasmussen May 19, 2017 10:29
@jasmussen
Copy link
Contributor

It seems like we'll want to do further work in order to fully address #574. But this is a GREAT step in the right direction. Thank you. Let's ship this and iterate.

@ellatrix
Copy link
Member Author

I agree, let's merge and iterate, I mainly just want to see where the focus is now. :)

@ellatrix ellatrix merged commit 7492855 into master May 19, 2017
@ellatrix ellatrix deleted the add/button-focus branch May 19, 2017 10:58
@aduth
Copy link
Member

aduth commented May 19, 2017

Should the focus styles have been applied to Button generally, not IconButton specifically?

@ellatrix
Copy link
Member Author

Button already has focus styles, these were for IconButton specifically.

@aduth
Copy link
Member

aduth commented May 19, 2017

.button has focus styles, but not all Buttons are .buttons

@aduth
Copy link
Member

aduth commented May 19, 2017

Related: #839

@ellatrix
Copy link
Member Author

Okay, but they don't have these styles in common, so do we want them to share it?

@aduth
Copy link
Member

aduth commented May 19, 2017

I guess more to the point, we have Buttons in the header which don't currently have focus styles even after these changes:

master:

image

With f36e1de (#839):

image

@afercia
Copy link
Contributor

afercia commented May 24, 2017

Not sure but the "Preview" is always disabled for me, any flow to follow to make it enabled? Worth noting disabled buttons are not focusable and shouldn't have a focus style.

@jasmussen
Copy link
Contributor

Not sure but the "Preview" is always disabled for me, any flow to follow to make it enabled? Worth noting disabled buttons are not focusable and shouldn't have a focus style.

This is a recent change, you have to save your post before it gets enabled. This is not explicitly the intended behavior, though, and it is subject to iteration. Ideally we'll make it behave exactly as the current preview button works.

@afercia
Copy link
Contributor

afercia commented May 24, 2017

This is a recent change, you have to save your post before it gets enabled

Ah ok thanks. Saving is disabled for now so will wait 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants