legacy-knowledge-base
公開されました Jun. 30, 2025

パラグラフフラグメント内のリンクに aria-label 属性を追加する。

written-by

Balázs Létai

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • ページ内で使用されている段落にリンクを追加する場合、 <a> タグに "aria-label" 属性を追加するオプションが必要である:
    <a href="https://www.google.com" rel="noopener noreferer" aria-label="Go to google">
  • この技術の目的は、支援技術で読み取ることができるオブジェクトのラベルを提供することです。 aria-label 属性は、ボタンなどのオブジェクトのテキストラベルを提供します。 スクリーン・リーダーがオブジェクトに遭遇すると、 aria-label のテキストが読み上げられ、ユーザはそれが何であるかを知ることができるようになる。

Environment

  • Liferay DXP 7.0+

解決策

  • このことを製品チームに知らせるために、機能要求が開かれました。
    もしこれが便利な機能だとお考えでしたら、 LPS-181294に投票をしてください。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base