-
Notifications
You must be signed in to change notification settings - Fork 142
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
fix: add aria-label to MessageScreen #1018
Conversation
Deploy preview for smarthr-ui ready! Built with commit 9d8d92a |
✨✨ That's perfect, there is no visual difference! ✨✨ Check out the report here. |
@nabeliwo @Tokky0425 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
対応ありがとうございます!コメントしたのでご確認をよろしくお願いします 🙏
@@ -39,7 +39,7 @@ export const MessageScreen: FC<Props> = ({ title, links, children, className = ' | |||
<li key={link.label}> | |||
<Link | |||
href={link.url} | |||
{...(link.target ? { target: link.target } : {})} | |||
{...(link.target ? { target: link.target, 'aria-label': '別タブで開く' } : {})} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[MUST] PR の説明を見ると「target=_blank
の時に 'aria-label': '別タブで開く'
を追加する」という条件のようですが、現状だと「target が存在した場合 target の値とは関係なく 'aria-label': '別タブで開く'
を追加する」という記述になっているようです。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ほんとだ…!🙇♀️
こちらで修正しましたのでご確認お願いします!
5e4d235
@nabeliwo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
Related URL
https://smarthr.atlassian.net/browse/SHRUI-152
Overview
MessageScreen--full
のtarget=_blank
なリンクが達成基準 1.1.1 非テキストコンテンツに非適合なのでaria-label
を追加しました。What I did
MessageScreen--full
のtarget=_blank
リンクにaria-label="別タブで開く"
を追加Capture