File tree Expand file tree Collapse file tree 2 files changed +17
-14
lines changed
packages/react/src/components/group Expand file tree Collapse file tree 2 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 2
2
" @chakra-ui/react " : minor
3
3
---
4
4
5
- Add ` unstyled ` prop support to compound component children to opt-out of recipe
6
- styles per component.
5
+ - ** System ** : Add ` unstyled ` prop support to compound component children to
6
+ opt-out of recipe styles per component.
7
7
8
- ``` tsx
9
- <Accordion.Root defaultValue = { [" a" ]} >
10
- <Accordion.Item value = " a" >
11
- { /* Opt-out of recipe styles */ }
12
- <Accordion.ItemTrigger unstyled bg = " red.500" />
13
- <Accordion.ItemContent >
14
- <Accordion.ItemBody />
15
- </Accordion.ItemContent >
16
- </Accordion.Item >
17
- </Accordion.Root >
18
- ```
8
+ ``` tsx
9
+ <Accordion.Root defaultValue = { [" a" ]} >
10
+ <Accordion.Item value = " a" >
11
+ { /* Opt-out of recipe styles */ }
12
+ <Accordion.ItemTrigger unstyled bg = " red.500" />
13
+ <Accordion.ItemContent >
14
+ <Accordion.ItemBody />
15
+ </Accordion.ItemContent >
16
+ </Accordion.Item >
17
+ </Accordion.Root >
18
+ ```
19
+
20
+ - ** Group** : Add support changing group gap globally via ` --group-gap ` CSS
21
+ variable
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import { cx, dataAttr } from "../../utils"
19
19
const StyledGroup = chakra ( "div" , {
20
20
base : {
21
21
display : "inline-flex" ,
22
- gap : "0.5rem" ,
22
+ gap : "var(--group-gap, 0.5rem) " ,
23
23
isolation : "isolate" ,
24
24
position : "relative" ,
25
25
"& [data-group-item]" : {
You can’t perform that action at this time.
0 commit comments