-
Notifications
You must be signed in to change notification settings - Fork 1
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
トップにもどるボタン のリンク先を追加 #1095
トップにもどるボタン のリンク先を追加 #1095
Conversation
@sysbird |
@sysbird 2人目確認お願いします。 |
# Conflicts: # .github/workflows/playwright.yml # package-lock.json # package.json # readme.txt
inc/pagetop-btn/js/pagetop-btn.js
Outdated
if(exist_id){ | ||
var ary_id = exist_id.split(' '); | ||
if (!ary_id.find(item => item === 'top')){ | ||
add_id = exist_id + ' top'; | ||
} |
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.
@sysbird ありがとうございます。id は一意なのでCSSのように複数入れる事はHTMLの仕様に反します。
idが既に存在する場合は、そのidを pagetop のリンク先に反映させるなどの対策をよろしくお願いいたします。
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.
@sysbird id は1単語のみの前提で書き換えました(複数入ってる事自体が間違いなのでその対応処理は削除)。
@kurudrive |
@kurudrive |
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.
@sysbird トップに戻ると関係ないブロックのビルドがコミットに含まれているので、nodeのバージョン変更した都合だと思いますが、コミットに含めないようによろしくお願いいたしますー ( ̄人 ̄)
チケットへのリンク / 変更の理由(元のissueがあればリンクを貼り付ければOK)
[アクセシビリティ] トップにもどるボタン のリンク先がない問題 #1094
どういう変更をしたか?
実装者はレビュワーに回す前に以下の事を確認してチェックをつけてください。
ソースコードについて
デザイン・UI
プログラムの変更の場合
テストを書かないのは普通ではありません。書けるテストは極力書くようにしてください。
書いていない場合は書かない理由を記載してください。
その他
変更内容について何を確認したか、どういう方法で確認をしたかなど
body
要素にIDtop
を追加body
要素にIDtop
がある場合は追加されないbody
要素にtop
以外のIDがある場合は、それを利用する→ ボタンのリンク先を変更
→ もし IDが複数あったら(ないんだけど)先頭を採用
body
要素以外にtop
が使われているかどうかねんのため確認して、top-1 、top-2…のように重複しないIDを付与→ ボタンのリンク先も変更
確認URL
( どこかのデモサイトかテストサーバーにデプロイ済みなどで確認できる場合はそのURL )
レビュワーの確認方法・確認する内容など
上記に同じです
レビュワーに回す前の確認事項
レビュワー向け
確認して変更が反映されていない場合の確認事項