リンクプレビューの反応をカードの型にそろえる - #3224
Merged
Merged
Conversation
囲みを持つぶん1箇所だけ古い型(題を ink-strong から ink-mute に落とす)が 残っていて、スタイルガイドの hover の表のどの行にも当てはまらない部品に なっていた。#2893 のとおり、この差は 1.62:1 しかなく読み取れない。 題に下線・画像が一段引く形にそろえる。カード全体が1つの <a> で行き先が 1つしか無いので、引き金はその <a> の :hover と :focus-visible。 キーボードで来たときも同じ反応が返る(#3168)。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#3222 の積み残し。記事本文に貼るリンクプレビューのカードだけ、hover が古い型(題を
ink-strongからink-muteに落とす)のまま残っていて、スタイルガイドの hover の表のどの行にも当てはまらない部品になっていた。直したこと
1px/link-underline-offset)、画像はopacity: 0.7。他のカード(一覧・パネル・ランキング・関連記事・We're hiring)と同じ型ink-strong→ink-muteの状態の差は 1.62:1 しかなく読み取れない(ホームの「すべての連載を見る」「すべての特設ページを見る」が青色リンク+選択で下線が出ない #2893 で他のカードが色から下線へ移ったときの判断)<a>の:hoverと:focus-visible。行き先が1つしか無いので:has()で別の行き先を避ける必要が無い(カードのメタ行をマウスで横切ると、題の下線とサムネの減光が点滅する #3170 の線引きはそのまま成立する)。キーボードで来たときも同じ反応が返る(キーボードで記事の入口に来たときに、カードと行の反応が出ない #3168)transitionからcolorを落とす(動かすものが無くなった)囲みの有無で反応は変えない。 リンクプレビューはサイトで数少ない「枠線を持つカード」だが、枠は範囲を示すもので反応の型を決めない。
文書
offset 3pxをlink-underline-offset(ダークモードでテキスト選択が見えない(::-moz-selection がルールごと無効にしている) #3058 で 2px)に直した確認
make cssの差分は該当ルールだけ、make lint-cssは通る🤖 Generated with Claude Code