-
Notifications
You must be signed in to change notification settings - Fork 359
Docs: address multi-device accessibility/layout warnings (contrast, logo sizing, video loading) #27583
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
Docs: address multi-device accessibility/layout warnings (contrast, logo sizing, video loading) #27583
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1779,3 +1779,30 @@ main, | |||||||||||
| transition: none; | ||||||||||||
| } | ||||||||||||
| } | ||||||||||||
|
|
||||||||||||
| @media (prefers-contrast: more) { | ||||||||||||
| :focus-visible { | ||||||||||||
| outline-width: 3px; | ||||||||||||
| } | ||||||||||||
|
|
||||||||||||
| .site-title span, | ||||||||||||
| .header-link { | ||||||||||||
| text-decoration: underline; | ||||||||||||
| } | ||||||||||||
| } | ||||||||||||
|
|
||||||||||||
| @media (forced-colors: active) { | ||||||||||||
| .site-title, | ||||||||||||
| .header-link, | ||||||||||||
| .gh-aw-video-container, | ||||||||||||
| .gh-aw-video-caption { | ||||||||||||
| border: 1px solid CanvasText; | ||||||||||||
| background: Canvas; | ||||||||||||
| color: CanvasText; | ||||||||||||
| } | ||||||||||||
|
|
||||||||||||
|
||||||||||||
| .site-title span { | |
| color: CanvasText; | |
| } |
Copilot
AI
Apr 21, 2026
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.
forced-color-adjust: auto is the default behavior, so this hover rule is effectively a no-op. If you intended to override UA color adjustments, set the desired value (commonly none) on the base state; otherwise, removing this rule will reduce confusion.
| .header-link:hover, | |
| .site-title:hover { | |
| forced-color-adjust: auto; | |
| } |
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.
loadingis not a valid/recognized attribute for the HTML<video>element (it’s supported on<img>/<iframe>), so this won’t actually change video loading behavior and may still leave the audit warning unresolved. If the goal is to avoid network activity until needed, consider using a real video mechanism (e.g.,preload="none"whenautoStartis false, or deferring setting<source src>until the video is in/near the viewport via IntersectionObserver).