-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Improve accessibility of open in new window toggle #2667
Comments
I thought this had been done, can you let me know what wasn't there? There's an aria-expanded attribute that shows if the expanded div is expanded or not, as far as I can see... |
Yeah, aria-expanded works well. Updated the issue description with some new things to address. |
I'm not sure what to do about point 4. If we change the input type from I believe that the following CSS:
would work, but I don't have access to all the browsers to test. Could someone verify for me? |
Sorry I was wrong: IE 11 and Edge display the "X" also for normal fields of type "text" so yes, there's the need to hide it with CSS. @notnownikki I think that CSS is correct and also already used in the Customizer, see However, as I'm aware of, WordPress is not using anywhere the Would be relying only on built-in browser validation be enough? I'd recommend to raise up this topic during dev chat. /cc @mtias @aduth |
Sorry, changing Enhancement label to Bug because unlabeled UI controls are a bug. |
[Edited by @afercia to report the right issues, sorry for the confusion]
Splitting this out from #2204 see also #2628
1
the "cog" button doesn't have any text or aria-label, it's completely empty so it will be reported by assistive technologies just as "button". Worth noting the other buttons that are very close in the code, they all have an aria-label...
Since it misses an aria-label, the button misses also a tooltip. I'd say it should have an aria-label with text "Link settings" or something along those lines.
2
z-index issue!
see screenshot above: when entering or pasting a link and there are also search results, when pressing the cog button the expanded panel stays below the search results.
To reproduce, insert a link to
https://wordpress.org
in a couple other posts. Then edit a third post and insert a link pasting in the fieldhttps://wordpress.org
.I'd say either increase the x-index or, maybe better, close the search suggestions when the setting panel is expanded, and display them again when the setting panel gets closed.
3
the input field misses a focus style.
This is because the input fields inherit the focus style from
forms.css
where input oftype="url"
aren't targeted. Two options here:type="text"
and miss minor advantages given bytype="url"
forms.css
, targetingtype="url"
4
IE 11 and Edge display a proprietary "X" control in the input fields of
type="url"
:This would be a minor issue, but unfortunately the spinner that appears when the search runs doesn't look so nice in combination with the "X":
If I remember correctly, a similar issue happened in the Customizer for the menu/widget search field and we just switched back the input field type "search" to "text" (which would also solve the focus style issue).
The text was updated successfully, but these errors were encountered: