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

Revert "Completely hide the meta boxes icons from screen readers" #1537

Merged
merged 1 commit into from
Jun 28, 2017

Conversation

jasmussen
Copy link
Contributor

Reverts #1388

I approved this prematurely. Seems it causes a number of issues with the icon button and we might want to try a different approach.

Icons in the quick toolbar lost their styles:

screen shot 2017-06-28 at 12 14 50

Icons in the editor bar are offset:

screen shot 2017-06-28 at 12 23 14

The quick toolbar appearing and disappearing when the block is selected causes a jump.

@jasmussen
Copy link
Contributor Author

Merging for now, will open a separate ticket to address the aria issue.

@jasmussen jasmussen merged commit 1041a8e into master Jun 28, 2017
@jasmussen jasmussen deleted the revert-1388-update/meta-boxes-svg-icons-a11y branch June 28, 2017 10:26
@swissspidy
Copy link
Member

The quick toolbar appearing and disappearing when the block is selected causes a jump.

See also #1300.

@jasmussen
Copy link
Contributor Author

#1300 is a different issue. The issue reverted here was caused by the span element adding extra height to the icons, that wasn't accounted for in the negative margin that positions the toolbar.

@afercia
Copy link
Contributor

afercia commented Jun 28, 2017

Sorry, just noticed the color issue 😞 Some of the CSS selectors would need to be updated

&:hover > svg,
&:focus > svg {
	color: $dark-gray-500;
}

Haven't noticed the icons misalignment when testing in Safari because icons in safari are always misaligned 😬 See screenshot after the revert:

screen shot 2017-06-28 at 12 30 33

@jasmussen
Copy link
Contributor Author

Ack yeah need to fix Safari.

And we can fix the issue with the span element causing jumps. But as I tried actually doing this, it seemed to cascade the issues, and since IconButton is used in many places I was wondering if we could do without the extra element. As I asked in #1388 (comment), can we apply the aria hidden attribute directly on the SVG itself?

@afercia
Copy link
Contributor

afercia commented Jun 28, 2017

Well the SVG elements already have aria-hidden but that doesn't fix the Firefox+NVDA bug 😞
Ideally, it would be great it this was fixed upstream because it is a browser+screen reader bug. Will keep experimenting.

Note: actually the issue is not the SVG content, it's the SVG updating that causes the browser to re-paint that area, rebuild the set of accessible properties (it shouldn't do this) and trigger the NVDA bug.

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.

3 participants