Opened 6 weeks ago
Last modified 11 days ago
#65766 accepted defect (bug)
Search engine visibility missing aria-describedby
| Reported by: | joedolson | Owned by: | joedolson |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.2 |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | accessibility |
Description
The search engine visibility setting has a description field that should be associated with the related checkbox using aria-describedby
Attachments (4)
Change History (14)
This ticket was mentioned in PR #12794 on WordPress/wordpress-develop by @sawf1y.
6 weeks ago
#3
- Keywords has-patch added; needs-patch removed
Added attribute aria-describedby
Related to the Trac ticket 65766
#4
@
5 weeks ago
@abcd95 asked in PR comment:
Could we also addaria-describedby="public-desc"to the radio buttons here andid="public-desc"to the<p class="description">here as well? This will ensure the setting is fully accessible even whenblog_privacy_selectoris active, matchingwp-admin/install.php
Me: File
wp-admin/install.phpcontainsaria-describedbyattribute within inputid="blog-norobots". Should I addaria-describedbytoinput.blog-public,input.blog-norobotsor probably both?
@abcd95 commented on PR #12794:
5 weeks ago
#5
Thanks for updating the attribute ordering, @sawfly! That looks much cleaner now.
Just a reminder regarding the remaining part of the review: the radio button section inside if ( has_action( 'blog_privacy_selector' ) ) (lines 215–219) is still missing aria-describedby and an id on its description paragraph.
To make the accessibility fix complete across all view states, could you also update that branch? In wp-admin/install.php, core handles this exact radio button setup similarly, you can refer from there for consistency check.
@sawf1y commented on PR #12794:
5 weeks ago
#6
Thanks for updating the attribute ordering, @sawfly! That looks much cleaner now.
Just a reminder regarding the remaining part of the review: the radio button section inside
if ( has_action( 'blog_privacy_selector' ) )(lines 215–219) is still missing aria-describedby and an id on its description paragraph.
To make the accessibility fix complete across all view states, could you also update that branch? In wp-admin/install.php, core handles this exact radio button setup similarly, you can refer from there for consistency check.
Dear @himanshupathak95 . Thanks for your involving in this PR. I've done as you asked to match install.php. In this comment you had asked to add aria-describedby to both radio buttons? In wp-admin/install.php the first radio button does not have attribute aria-describedby. I asked you in reply. So, if the goal was to match public visibiliti option exactly with wp-admin/install.php, that it have done now
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
5 weeks ago
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
3 weeks ago
#10
@
11 days ago
Note that, as reported on the linked PR, when the action blog_privacy_selector is in use, this setting uses two radio buttons instead of a single checkbox. See attached screenshot.
In that case, I'm not sure using aria-describedby on the second radio button is correct. Rather, I'd consider using it directly on fhe <fieldset> element. @joedolson any thoughts about this pattern?
The same pattern is used on the install page and should be adjusted there as well.
Not to mention on the Reading Settings page there's another description that is not associated, the one for the two radio buttons related to 'For each post in a feed, include'.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In core,
wp-admin/install.phpalready implements this for the exact same setting during the installation flow, usingid="privacy-desc"andaria-describedby="privacy-desc". So I think all we need to do is -id="blog-public-desc"to the description<p>tags (this covers both the default checkbox view and theblog_privacy_selectorradio button view).aria-describedby="blog-public-desc"to the<input type="checkbox">and the<input type="radio">elements.Should do the job imo.