#6678·astryx

[Bug] Dialog declares border: 'none' but the compiled CSS never lands it — UA <dialog> border shows through

Author: jasondwhyteCreated Sep 26, 2026Updated Sep 26, 2026

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) declares border: 'none'.
  • The shipped dist/astryx.css contains exactly one border-style: none atomic class (.xng3xce).
  • dist/Dialog/Dialog.js never 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

  1. In a Vite + React 19 app, import ONLY @astryxdesign/core/astryx.css and a theme's theme.css (no reset.css).
  2. Render a Dialog with purpose="form", open it, and focus it (:focus-visible makes the frame most visible).
  3. Observe a 3px currentColor border 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.