You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f81230b
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(core): one source for the touch, compact and iOS-gate style keys
touchKeys (StyleX defineConsts in utils/touchPresentation.stylex.ts) holds
the touch presentation resolver's queries as at-rule keys; every core style
imports them instead of spelling the query. A test keeps each key equal to
the resolver's constant and fails on a literal spelling in core (another
package may only spell it exactly). Outer at-rule blocks become
property-level conditions, which an imported key requires; Tab repeats its
touch rule inside its hover branch, since StyleX no longer makes the two
media keys exclusive by itself. Generated CSS is unchanged for every other
file.
[chore] Core's touch, compact and iOS-gate style keys come from one place: `touchKeys` (StyleX `defineConsts` in `utils/touchPresentation.stylex.ts`), equal to the touch presentation resolver's queries, instead of a literal spelling in each component. No style changes: every rule keeps its query. The keys are also exported as `@astryxdesign/core/utils/touchPresentation.stylex` for other packages (proposed; pending owner review).
0 commit comments