Skip to content

Commit

Permalink
fix(radio): hover display for a selected radio
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck Gaudin committed Dec 4, 2023
1 parent a88ff19 commit 00d91c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/silver-ghosts-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@igloo-ui/radio": patch
---

fix the problem of displaying the hover of a selected radio
5 changes: 1 addition & 4 deletions packages/Radio/src/radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@
--ids-radio-border-checked: var(--hop-neutral-border-active);
--ids-radio-border-checked-hover: var(--hop-neutral-border-active);
--ids-radio-background: var(--hop-neutral-surface);
--ids-radio-background-hover: var(--hop-neutral-surface-hover);
--ids-radio-background-disabled: var(--hop-neutral-surface-disabled);
--ids-radio-background-disabled-checked: var(--hop-neutral-surface-disabled);
--ids-radio-background-checked: var(--hop-neutral-surface-active);
--ids-radio-check-background-checked-hover: var(--hop-neutral-icon-hover)
}

%radio {
Expand Down Expand Up @@ -121,14 +119,13 @@

&:hover {
border-color: var(--ids-radio-border-hover);
background-color: var(--ids-radio-background-hover, var(--ids-radio-background))
}

&:checked:hover {
border-color: var(--ids-radio-border-checked-hover, var(--ids-radio-border-hover)) ;

&::after {
background: var(--ids-radio-check-background-checked-hover, var(--ids-radio-background));
background: var(--ids-radio-background);
}
}

Expand Down

0 comments on commit 00d91c1

Please sign in to comment.