Merge pull request 'fix(ptica): button font-size — :where() so component classes win over reset' (#1858) from fix/ptica-button-fontsize into main
All checks were successful
Deploy / build-backend (push) Has been skipped
Deploy / deploy (push) Successful in 1m9s
Deploy / changes (push) Successful in 7s
Deploy / build-worker (push) Has been skipped
Deploy / build-frontend (push) Successful in 3m20s

This commit is contained in:
bot-backend 2026-06-20 21:35:51 +00:00
commit 2a40b4fcc6

View file

@ -92,7 +92,12 @@
100% 100%;
}
.pticaRoot button {
/* `:where(button)` keeps specificity at (0,1,0) so per-component button classes
(.navItem 9px, .tab 11px, .detailBtn 9px, .ptab ) win their font-size. With a
bare `.pticaRoot button` (0,1,1) the `font: inherit` reset beat those classes
and forced every cockpit button back to the root 13px overflowing the 96px
rail and oversizing tabs/buttons. Matches the prototype's bare `button {}`. */
.pticaRoot :where(button) {
font: inherit;
cursor: pointer;
color: inherit;