various fixes
This commit is contained in:
@@ -219,8 +219,9 @@ def test_header_z_index_is_20_so_the_dropdown_uses_21() -> None:
|
||||
def test_mobile_block_renders_the_44px_toggle() -> None:
|
||||
"""At ≤640px the toggle is a 44px×44px button (the phase-07 touch
|
||||
floor), ghost look like the other pills, a hover state in the
|
||||
.steering-toggle:hover family, and a SIZED icon (an unsized inline
|
||||
SVG defaults to 300px and would blow the bar out at 360px).
|
||||
shared pill hover family (brand-ink on brand-soft, as
|
||||
.nav-link:hover), and a SIZED icon (an unsized inline SVG defaults
|
||||
to 300px and would blow the bar out at 360px).
|
||||
:focus-visible needs no rule — the global 3px outline applies."""
|
||||
mobile = _media_block(_css(), "@media (max-width: 640px)")
|
||||
block = _rule_block(mobile, ".nav-toggle")
|
||||
@@ -239,7 +240,7 @@ def test_mobile_block_renders_the_44px_toggle() -> None:
|
||||
hover = _rule_block(mobile, ".nav-toggle:hover")
|
||||
assert "background: var(--brand-soft)" in hover
|
||||
assert "color: var(--brand-ink)" in hover, (
|
||||
"hover matches the .steering-toggle:hover family (≈6.9:1 pair)"
|
||||
"hover matches the shared pill hover family (≈6.9:1 pair)"
|
||||
)
|
||||
icon = _rule_block(mobile, ".nav-toggle svg")
|
||||
assert "width: 20px" in icon and "height: 20px" in icon, (
|
||||
|
||||
Reference in New Issue
Block a user