Commit b1ee4e4
fix(ui-dialog): allow consumers to override inherited border-radius
The dialog forced `border-radius: inherit` via an inline style so that content like Menu
and DateInput could inherit a wrapping View's radius. Inline styles (and an equivalent
emotion `css` rule) cannot be overridden by a consumer's own `css` prop, so components
like Modal could not set their own border-radius.
Wrap the `inherit` rule in an `@layer` cascade layer instead. Unlayered consumer styles
always win over layered ones regardless of specificity or source order, so an explicit
border-radius from Modal takes effect while the inherit fallback still applies when no
radius is provided.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent b9ff437 commit b1ee4e4
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
176 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
177 | 182 | | |
178 | 183 | | |
179 | 184 | | |
| |||
0 commit comments