Skip to content

[Link] Relevance of title attributes #2897

Open
@renow-luxembourg

Description

Feature Request

In French-speaking countries, for accessibility audit we use the RGAA accessibility guidelines, 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions