#52891 closed defect (bug) (fixed)
Privacy: print screen reader text message
Reported by: | mukesh27 | Owned by: | davidbaumwald |
---|---|---|---|
Milestone: | 5.7.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Privacy | Keywords: | has-patch commit fixed-major dev-reviewed |
Focuses: | ui, accessibility, administration | Cc: |
Description
Print screen reader text message for privacy_policy_guide()
function.
Change History (15)
This ticket was mentioned in PR #1114 on WordPress/wordpress-develop by mukeshpanchal27.
3 years ago
#1
- Keywords has-patch added
#2
follow-up:
↓ 4
@
3 years ago
Could you please expand on this?
I'm not sure what this ticket does, or why?
I assume this is to improve accessibility, but not sure what was wrong?
#4
in reply to:
↑ 2
@
3 years ago
Replying to carike:
I assume this is to improve accessibility, but not sure what was wrong?
The sprintf()
function was erroneously used instead of printf()
, so the screen reader text is not actually printed.
#5
@
3 years ago
- Keywords needs-refresh added
After switching to printf
, screen readers would speak both the visible text plus the intended screen reader text:
"Copy suggested policy text to clipboard Copy suggested policy text from WordPress. button"
One way to fix the redundancy is wrapping the visible text with <span aria-hidden="true"></span>
:
<button type="button" class="privacy-text-copy button"> <span aria-hidden="true"><?php _e( 'Copy suggested policy text to clipboard' ); ?></span> <span class="screen-reader-text"> <?php /* translators: %s: Plugin name. */ printf( __( 'Copy suggested policy text from %s.' ), $plugin_name ); ?> </span> </button>
This ticket was mentioned in PR #1119 on WordPress/wordpress-develop by mukeshpanchal27.
3 years ago
#6
- Keywords needs-refresh removed
Trac ticket: https://core.trac.wordpress.org/ticket/52891
#10
@
3 years ago
- Keywords commit fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for backporting to the 5.7 branch.
#11
@
3 years ago
- Keywords dev-feedback added
Adding dev-feedback
for a secondary review prior to backporting.
Trac ticket: https://core.trac.wordpress.org/ticket/52891