File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
packages/components/src/Form/Fieldset Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88## [ UNRELEASED]
99
10+ ### Changed
11+
12+ - ` Fieldset ` accordion mode auto-indents elements in the inner ` AccordionContent `
13+
1014### Fixed
1115
1216- ` DialogContent ` with ` borderBottom ` prop CSS output error (no border, no flex: 8)
Original file line number Diff line number Diff line change @@ -182,6 +182,13 @@ export const Fieldset = styled(FieldsetLayout)`
182182 ${ simpleLayoutCSS }
183183
184184 ${ AccordionContent } {
185+ padding-left: ${ ( { theme } ) => {
186+ const borderWidth = '1px'
187+ const defaultIndicatorSize = theme . space . medium
188+ const defaultIndicatorGap = theme . space . xsmall
189+
190+ return `calc(${ borderWidth } + ${ defaultIndicatorSize } + ${ defaultIndicatorGap } )`
191+ } } ;
185192 padding-top: ${ ( { theme } ) => theme . space . medium } ;
186193 }
187194
Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ exports[`Fieldset 1`] = `
129129}
130130
131131.c0 .c12 {
132+ padding - left : calc (1px + 1rem + 0.5rem );
132133 padding - top : 1rem ;
133134}
134135
You can’t perform that action at this time.
0 commit comments