cleaned up bg props

Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
Charles de Dreuille
2026-02-11 09:58:39 +00:00
parent ad510a5519
commit c67fb17302
12 changed files with 48 additions and 72 deletions
+2
View File
@@ -10,3 +10,5 @@ The Alert component's background is now driven entirely by its `status` prop. Th
- <Alert surface="1" status="info" />
+ <Alert status="info" />
```
**Affected components:** Alert
+1 -1
View File
@@ -86,6 +86,6 @@ Update CSS selectors targeting surface data attributes:
+ [data-on-bg='neutral-1'] { ... }
```
Note: Provider components use `data-bg` (values: `neutral-1` through `neutral-3`, plus intents). Consumer components use `data-on-bg`, which reflects the parent container's bg directly (no auto-increment).
Note: Provider components use `data-bg` (values: `neutral-1` through `neutral-3`, plus intents). Consumer components use `data-on-bg`, which reflects the parent container's `bg` directly.
**Affected components:** Box, Button, ButtonIcon, ButtonLink, ToggleButton, Card, Flex, Grid