#55498 closed defect (bug) (fixed)
Permalink Settings Page Accessibility Improve
Reported by: | rishishah | Owned by: | joedolson |
---|---|---|---|
Milestone: | 6.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Permalinks | Keywords: | has-patch commit add-to-field-guide |
Focuses: | accessibility, ui-copy | Cc: |
Description (last modified by )
Labels and input fields are not all properly associated on permalinks settings screen.
Was:
On the Permalink Settings page, the current accessibility score is 94 for Desktop 92 > for Mobile devices.
Attachments (2)
Change History (30)
#1
@
2 years ago
- Component changed from General to Permalinks
- Focuses ui-copy added
- Version trunk deleted
Thanks for the report!
Yes, that input needs a label, though it should describe the input better than the base URL does. "Custom Permalink Structure Tags" is one option, and I welcome other ideas.
There are a few other considerations on this screen:
- The radio buttons could have
aria-describedby
values connecting each to its example URL. - The radio button labels still wrap both the input and text (not separated, using
id
andfor
). - "Available tags:" could be a
legend
for afieldset
to group the related buttons. - I would like to wrap the custom text input plus its new (probably non-visual) label and base URL within a
<span class="code"></span>
for better RTL support, which might fit well with #47755 instead. - When navigating by keyboard, editing the custom input value on changing the radio buttons can
cause problemsunintentionally replace a custom set of tags. This JS issue can be on its own ticket; I'm not sure about the others.
This ticket was mentioned in Slack in #accessibility by sabernhardt. View the logs.
2 years ago
This ticket was mentioned in PR #2495 on WordPress/wordpress-develop by kebbet.
2 years ago
#3
- Keywords has-patch added
Trac ticket:
https://core.trac.wordpress.org/ticket/55498
#5
@
2 years ago
I missed that the text field value is the permalink structure setting (and the radio buttons would need to continue editing that value on the change event). So the label should communicate that the structure can be customized, yet it is not always custom.
"Customize permalink structure by selecting available tags" could fit.
This ticket was mentioned in PR #2557 on WordPress/wordpress-develop by sabernhardt.
2 years ago
#6
This pull request builds on PR2495 by @kebbet, which:
- Groups the radio buttons inside one fieldset and the available tags buttons inside another.
- Adds
for
andid
attributes for associating each input with its label. - Connects the URL examples to each input with
aria-describedby
.
Further edits:
- Adds missing label for text input: "Customize permalink structure by selecting available tags" is an option.
- Moves inputs (and other elements) outside of the labels.
- Uses existing "Permalink structure" text as a legend for the radio buttons ("Select permalink structure" may be more helpful, though I tend to prefer reusing text strings).
- Adds
presentation
role to the table. - Assigns the
structure-selection
class to the fieldset instead of the table row. - Wraps the Custom Structure option's URL and input in a
<span class="code"></span>
tag to keep the field on the right side in RTL languages.
This version retains the list item elements for the "Available tags" buttons. I like that my screen reader (NVDA) says the item count. The layout might be improved by flex
and flex-wrap
instead of floating, but I do not think that belongs on this ticket.
Trac ticket: https://core.trac.wordpress.org/ticket/55498
sabernhardt commented on PR #2557:
2 years ago
#7
#9
@
2 years ago
I was sketching to add a paragraph between the heading Common Settings
and the selection table. Something like this.
Select the permalink structure for your website. A structure that includes the post name makes sharing links to others more understandable.
Any thoughts?
2 years ago
#10
Does this makes any sence? Better alignments of radio buttons.
https://github.com/WordPress/wordpress-develop/pull/2563
This ticket was mentioned in PR #2563 on WordPress/wordpress-develop by kebbet.
2 years ago
#11
This pull request builds on PR2557 by @sabernhardt.
Following changes are made in relationship to 2557.
- Build an array to permalink structure options
- Loop the array to make sure markup is consistent
- Adds
div
-tags for better alignments of labels and descriptions to input-rows.
Trac ticket: https://core.trac.wordpress.org/ticket/55498
This ticket was mentioned in Slack in #accessibility by ryokuhi. View the logs.
2 years ago
#13
@
2 years ago
- Milestone changed from Awaiting Review to 6.1
This ticket was reviewed today during the Accessibility Team's weekly bug-scrub.
We're milestoning it for 6.1, so that there's already a timeframe for it.
#14
@
2 years ago
The PR looks pretty good to me, thanks!
I added a small comment in the last PR, but it looks pretty solid.
This ticket was mentioned in Slack in #accessibility by ryokuhi. View the logs.
2 years ago
#21
@
2 years ago
While testing this for commit, noticed a pre-existing bug with the aria-live messages. Opened a follow-up ticket at #56230.
joedolson commented on PR #2563:
2 years ago
#22
2 years ago
#23
Could be closed since https://github.com/WordPress/wordpress-develop/pull/2563 now is merged. @sabernhardt
Here is the patch to fix and improve accessibility score to 100 on desktop and 98 on Mobile