Skip to content

Commit

Permalink
fix: display checkbox boolean (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
QRuhier authored Nov 12, 2024
1 parent 683c32d commit 553e5d5
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions drama-queen/src/ui/components/orchestrator/lunaticStyle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,6 @@ export const useLunaticStyles = tss.create(({ theme }) => ({

// to replace checkbox by svg
'& .list-icon': { position: 'absolute', marginTop: '-0.2rem' },
'& .checkbox-boolean-lunatic': {
position: 'absolute',
opacity: 0,
marginBottom: 0,
marginTop: '0.15rem',
marginLeft: '0.2rem',
height: '18px',
width: '18px',
},

// datepicker
'.lunaticDatepickerFields': {
Expand Down Expand Up @@ -257,6 +248,32 @@ export const useLunaticStyles = tss.create(({ theme }) => ({
},
},

// checkbox boolean
'& .lunatic-checkbox-boolean': {
'& .lunatic-input-checkbox__icon': {
display: 'grid',
placeItems: 'center',
width: '18px',
height: '18px',
padding: '0.1em',
flex: 'none',
borderRadius: '5px',
color: '#FFF',
backgroundColor: `${modalityCodeBackgroundColor}`,
border: `2px solid ${borderColorCheckbox}`,

'& svg': {
transform: 'scale(0.7)',
},
},

"& .lunatic-input-checkbox[aria-checked='true'] .lunatic-input-checkbox__icon":
{
backgroundColor: theme.palette.background.button.main,
borderColor: `${modalityLabelColorChecked}`,
},
},

// .lunatic-component lunatic label
'& .lunatic-input , .lunatic-textarea, .lunatic-input-number, .lunatic-dropdown, .lunatic-combo-box-container, .field-container > .field .lunatic-input':
{
Expand Down

0 comments on commit 553e5d5

Please sign in to comment.