Opened 4 months ago
Last modified 8 days ago
#61866 accepted feature request
Notify users of links that open in new tab.
Reported by: | wmalexander | Owned by: | joedolson |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | Themes | Keywords: | target-blank |
Focuses: | accessibility | Cc: |
Description
I had a conversation with our Technology Accessibility Team last week - they were asking me if we could implement an automated icon addition for links which open in an external tab. Apparently there are some WCAG compliance implications of opening a link in a new tab.
https://theadminbar.com/accessibility-weekly/opening-links-in-new-tabs-or-not/
This may be the responsibility of the theme, rather than being a core WordPress function. I thought it was worth mentioning, since it came up.
Change History (8)
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
4 months ago
#3
@
4 months ago
This does seem mostly like a theme issue, since it's about how the content displays. But I also feel that it can be a difficult thing to add with back compatibility, since people who have been concerned about this issue will have already dealt with it - either using plugins or by adding explicit text to their link text to indicate that the link opens in a new tab.
It's not impossible that this could be done in core, but it's very similar to the reason why we decided not to output the .screen-reader-text
styles in themes. See #29699.
This ticket was mentioned in Slack in #accessibility by rcreators. View the logs.
3 months ago
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
7 weeks ago
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
9 days ago
#8
@
8 days ago
- Milestone changed from Awaiting Review to Future Release
- Owner set to joedolson
- Status changed from new to accepted
I'd like to do this, ultimately - I think it would be a very useful feature to have behind a theme support flag, and could be a beneficial part of the accessibility ready program. However, there are a lot of complications, and I don't think it's something there's time for right now. The Gutenberg aspects could happen sooner; but having a global core option is a bit more significant to implement.
Hi and thanks for the ticket! Most related Trac tickets have focused on the admin and on removing
target="_blank"
.GB61056 requested a class for the "Button" block so the theme's visual indicator could show in the editor as it would on the front end. GB22332 could add screen reader text for a non-visual indicator.
I set the component to Themes. Even if Core creates a common method of indicating links that open in a new tab, themes likely will need to opt in (with something like
add_theme_support
).