[Bug] Dialog declares border: 'none' but the compiled CSS never lands it — UA <dialog> border shows through
Summary
In @astryxdesign/[email protected], Dialog declares border: 'none' in its StyleX styles, but the shipped compiled CSS never applies a border reset to the dialog element. Consumers who do not import reset.css get the UA default <dialog> { border: solid } (Chromium: 3px currentColor) rendered as a visible frame around the dialog.
Evidence
packages/core/src/Dialog/Dialog.tsx(the StyleX style object used for the dialog element, around lines 165 and 238) declaresborder: 'none'.- The shipped
dist/astryx.csscontains exactly oneborder-style: noneatomic class (.xng3xce). dist/Dialog/Dialog.jsnever references that class (or any border rule) — verified by a class-by-class dump of the compiled component output against the stylesheet.
So the declaration exists in source but does not survive into the compiled component output.
Why it may be going unnoticed
reset.css zeroes the UA dialog border, so setups that import it (the documented quick-start does) are masked. The gap shows only for consumers who skip the reset — for example because it collides with an existing stylesheet's reliance on UA defaults.
Repro
- In a Vite + React 19 app, import ONLY
@astryxdesign/core/astryx.cssand a theme'stheme.css(noreset.css). - Render a
Dialogwithpurpose="form", open it, and focus it (:focus-visiblemakes the frame most visible). - Observe a 3px
currentColorborder around the dialog frame.
Expected
The dialog element renders with no UA border regardless of whether reset.css is imported — the component's own border: 'none' should land in the compiled CSS.
Workaround
App-side: border: none on the dialog's class. Harmless once fixed upstream.
Source: facebook/astryx