Skip to content

Commit

Permalink
fix: fix styles for disable Radio button (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
burakukula committed Feb 19, 2021
1 parent 3e394e2 commit 2c200ac
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,23 @@

&:disabled {
& + .RadioButton__ghost {
border-color: var(--color-element-dark);
background: var(--color-element-dark);
}

& + .RadioButton__ghost::before {
background: var(--color-element-darkest);
background: var(--color-text-lightest);
}
}
}

&:disabled {
& + .RadioButton__ghost {
border-color: var(--color-element-dark);
background: var(--color-element-dark);
}

& + .RadioButton__ghost::before {
background: var(--color-text-lightest);
background: var(--color-element-darkest);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,22 @@ export const overview = () => (
id="radioButton3"
/>
</Flex>
<Flex marginBottom="spacingS">
<SectionHeading element="h3">
Radio button disabled checked
</SectionHeading>
</Flex>
<Flex marginBottom="spacingS">
<RadioButtonField
labelText="Label text"
helpText="This is a helptext"
disabled
checked
name="someOption"
value="no"
id="radioButton3"
/>
</Flex>
<Flex marginBottom="spacingS">
<SectionHeading element="h3">
Radio button with light label
Expand Down

0 comments on commit 2c200ac

Please sign in to comment.