Skip to content

Commit

Permalink
updated the UI of selected filter hover state (#822)
Browse files Browse the repository at this point in the history
  • Loading branch information
fraincs authored May 30, 2024
1 parent cd61032 commit 5f7e49c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cool-icons-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@igloo-ui/filter": patch
---

Fixed the hover state of selected filter.
5 changes: 4 additions & 1 deletion packages/Filter/src/filter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

/* Selected Hover */
--ids-filter-background-selected-hover: #{tokens.$grey-800};
--ids-filter-border-color-selected-hover: #{tokens.$grey-800};

/* Disabled */
--ids-filter-background-disabled: #{tokens.$grey-200};
Expand Down Expand Up @@ -74,6 +75,7 @@

/* Selected Hover */
--ids-filter-background-selected-hover: var(--hop-neutral-surface-selected);
--ids-filter-border-color-selected-hover: var(--hop-neutral-surface-selected);

/* Disabled */
--ids-filter-background-disabled: var(--hop-neutral-surface-disabled);
Expand Down Expand Up @@ -125,7 +127,7 @@
outline: none;
padding: var(--ids-filter-padding);
position: relative;
transition: background 0.4s, color 0.4s;
transition: background 0.4s, color 0.4s, border-color 0.4s;

& * {
box-sizing: border-box;
Expand All @@ -147,6 +149,7 @@

.ids-filter--selected:hover {
background: var(--ids-filter-background-selected-hover);
border-color: var(--ids-filter-border-color-selected-hover);
color: var(--ids-filter-color-selected);
}

Expand Down

0 comments on commit 5f7e49c

Please sign in to comment.