Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Link] Relevance of title attributes #2897

Open
renow-luxembourg opened this issue Nov 26, 2024 · 0 comments
Open

[Link] Relevance of title attributes #2897

renow-luxembourg opened this issue Nov 26, 2024 · 0 comments

Comments

@renow-luxembourg
Copy link
Contributor

renow-luxembourg commented Nov 26, 2024

Feature Request

In UE, for accessibility audit we use the RGAA referentiel, for the links it's a little stricter than WCAG.

Is your feature request related to a problem? Please describe.
For each text link with a link title (title attribute), the content of this attribute is not enought relevant for RGAA auditors.

Describe the solution you'd like
The link title must contain at least the textual content.

To take into account to go further :

  • If a title proposal is entered manually by the editor, and if this proposal is different from the textual content then we will use a concatenation of these two elements for the title attribute
  • If a proposed title is entered manually by the writer, and if the textual content is included in the manually entered title proposal then the title attribute will consist only of the proposed title
  • If a title proposal is entered manually by the editor, and if the textual content is stricly equal to this proposal then the title attribute shouldn't be generated (shouldn't display anything on hover)

In the code, edit "PN_LINK_TITLE_ATTRIBUTE" around line 130 of aem-core-wcm-components/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/link/LinkBuilderImpl.java

Example
<a href="target_page_url" target="_blank" title="My label - new window">My label</a>

  • link title = "My label - new window"
  • textual content = "My label"

Documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant