fix(css): force !important on iso-variant-stack [hidden] override #18

Closed
skr wants to merge 2 commits from fix/panel-stack-important into main
Owner

Defeat Tailwind v4 preflight [hidden]{display:none!important} so stacked panels stay in same grid cell.

Defeat Tailwind v4 preflight `[hidden]{display:none!important}` so stacked panels stay in same grid cell.
fix(home): defeat UA [hidden] in iso-variant-stack + restore prototype d-os-grid
All checks were successful
Build & Deploy / check (pull_request) Successful in 31s
Build & Deploy / deploy (pull_request) Has been skipped
d69951199c
Two regressions reported on the live deploy:

1. Switching ISO artefact panels caused the hero column to jump
   in height. The grid-overlap stack relied on `display: block`
   for inactive panels but the React `hidden={!active}` prop
   (kept for U-07 a11y-tree exclusion) re-applies the UA default
   `[hidden] { display: none }`, collapsing 4 of 5 panels and
   sizing the wrap to whichever panel was active. Adds a single
   override `.iso-variant-stack > .iso-variant[hidden] { display:
   block }` so visibility+pointer-events stay the real toggle and
   the wrap stays at the height of the tallest panel.

2. The Open Research repo grid was a single 1fr column, three
   stacked rows. The prototype's grid is two columns —
   `calc(50% - 5px)` left for the two real repos, `200px` right
   for the Coming-Soon card spanning both rows — collapsing to
   1fr below 1024 px. Restored both the base grid + the mobile
   reset.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
fix(css): force !important on iso-variant-stack [hidden] override
All checks were successful
Build & Deploy / check (pull_request) Successful in 31s
Build & Deploy / deploy (pull_request) Has been skipped
a64bd42aa9
The earlier fix added `display: block` for stacked panels with the
`hidden` attribute, but Tailwind v4's preflight ships
`[hidden]:where(:not([hidden=until-found])){display:none!important}`
in @layer base. The !important defeats any non-important author
rule regardless of specificity, so 4 of 5 panels collapsed to
display:none and the wrap height jumped on every tab-switch.

Adds !important to the author rule. Both rules now duel as
important, and the higher-specificity author rule (0,0,2,1) wins
over the preflight (0,0,1,0).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
skr closed this pull request 2026-05-08 19:19:59 +00:00
All checks were successful
Build & Deploy / check (pull_request) Successful in 31s
Required
Details
Build & Deploy / deploy (pull_request) Has been skipped

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nm/website!18
No description provided.