Closed akabekobeko closed 3 years ago
<img> に alt が設定されていると <figcaption> を生成してそのテキストに設定されます。この挙動により Screen Reader が両方を重複して読み上げる副作用があるため、これを防ぐために <figcaption> へ属性として aria-hidden="true" を設定します。
<img>
alt
<figcaption>
aria-hidden="true"
@MurakamiShinyu テスト側の HTML をレビューしてください。提案されたとおりと思われますが、過不足あれば指摘をお願いします。
レビューありがとうございます。merge しました。
75 対応。
<img>
にalt
が設定されていると<figcaption>
を生成してそのテキストに設定されます。この挙動により Screen Reader が両方を重複して読み上げる副作用があるため、これを防ぐために<figcaption>
へ属性としてaria-hidden="true"
を設定します。@MurakamiShinyu テスト側の HTML をレビューしてください。提案されたとおりと思われますが、過不足あれば指摘をお願いします。