Skip to content

Commit

Permalink
Hide outer ring when radio button is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Lehats committed Jan 10, 2024
1 parent 0fe6d08 commit 94b6780
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,16 @@ const CoordinatesSegment = props => {
<FormControlLabel
value={referenceSystems.LV95.code}
sx={{ flexGrow: 1 }}
control={<Radio disabled={!isEditable} />}
control={
<Radio
disabled={!isEditable}
sx={{
"&.Mui-disabled input": {
zIndex: -1,
},
}}
/>
}
label={
<DomainText
id={referenceSystems.LV95.code}
Expand All @@ -399,7 +408,16 @@ const CoordinatesSegment = props => {
<FormControlLabel
value={referenceSystems.LV03.code}
sx={{ flexGrow: 1 }}
control={<Radio disabled={!isEditable} />}
control={
<Radio
disabled={!isEditable}
sx={{
"&.Mui-disabled input": {
zIndex: -1,
},
}}
/>
}
label={
<DomainText
id={referenceSystems.LV03.code}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,44 @@ const RestrictionSegment = props => {
}}>
<FormControlLabel
value="TRUE"
control={<Radio disabled={!isEditable} />}
control={
<Radio
disabled={!isEditable}
sx={{
"&.Mui-disabled input": {
zIndex: -1,
},
}}
/>
}
label={<TranslationText id={"yes"} />}
/>
<FormControlLabel
value="FALSE"
control={<Radio disabled={!isEditable} />}
control={
<Radio
disabled={!isEditable}
sx={{
"&.Mui-disabled input": {
zIndex: -1,
},
}}
/>
}
label={<TranslationText id={"no"} />}
/>
<FormControlLabel
value="NULL"
control={<Radio disabled={!isEditable} />}
control={
<Radio
disabled={!isEditable}
sx={{
"&.Mui-disabled input": {
zIndex: -1,
},
}}
/>
}
label={<TranslationText id={"np"} />}
/>
</RadioGroup>
Expand Down

0 comments on commit 94b6780

Please sign in to comment.