Opened 2 years ago
Last modified 20 months ago
#61866 accepted feature request
Notify users of links that open in new tab.
| Reported by: | wmalexander | Owned by: | joedolson |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Themes | Version: | |
| Severity: | normal | Keywords: | target-blank |
| Cc: | Focuses: | accessibility |
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.
23 months ago
#3
@
23 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.
22 months ago
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
21 months ago
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
20 months ago
#8
@
20 months ago
- Milestone Awaiting Review → Future Release
- Owner set to
- Status new → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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).