File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed
packages/compass-data-modeling/src/components Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,16 @@ const modelBodyStyles = css({
2929 paddingTop : spacing [ 600 ] ,
3030} ) ;
3131
32- const exportFormatContainerStyles = css ( {
32+ const contentContainerStyles = css ( {
3333 display : 'flex' ,
3434 flexDirection : 'column' ,
3535 gap : spacing [ 300 ] ,
3636} ) ;
3737
38- const radioGroupStyles = css ( {
38+ const radioItemStyles = css ( {
3939 display : 'flex' ,
40- flexDirection : 'column ' ,
41- gap : spacing [ 300 ] ,
40+ alignItems : 'center ' ,
41+ gap : spacing [ 200 ] ,
4242} ) ;
4343
4444const footerStyles = css ( {
@@ -92,18 +92,20 @@ const ExportDiagramModal = ({
9292 }
9393 />
9494 < ModalBody className = { modelBodyStyles } >
95- < div className = { exportFormatContainerStyles } >
95+ < div className = { contentContainerStyles } >
9696 < Label htmlFor = "" > Select file format:</ Label >
97- < RadioGroup
98- className = { radioGroupStyles }
99- value = { exportFormat }
100- onChange = { ( e ) => setExportFormat ( e . target . value as 'json' ) }
101- >
102- < Radio value = "json" aria-label = "JSON" >
97+ < RadioGroup className = { contentContainerStyles } value = { exportFormat } >
98+ < div className = { radioItemStyles } >
10399 < Icon glyph = "CurlyBraces" />
104- { nbsp }
105- JSON
106- </ Radio >
100+ < Radio
101+ checked = { exportFormat === 'json' }
102+ value = "json"
103+ aria-label = "JSON"
104+ onClick = { ( ) => setExportFormat ( 'json' ) }
105+ >
106+ JSON
107+ </ Radio >
108+ </ div >
107109 </ RadioGroup >
108110 </ div >
109111 </ ModalBody >
You can’t perform that action at this time.
0 commit comments