Skip to content

Commit

Permalink
Resolves: emilkowalski#224 - Close button is always visible on toast …
Browse files Browse the repository at this point in the history
…when defined
  • Loading branch information
andrewbarnesweb committed Nov 14, 2023
1 parent 962dccb commit 48a109d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ html[dir='rtl'],
border: 1px solid var(--gray4);
transform: var(--toast-close-button-transform);
border-radius: 50%;
opacity: 0;
cursor: pointer;
z-index: 1;
transition: opacity 100ms, background 200ms, border-color 200ms;
Expand All @@ -232,16 +231,6 @@ html[dir='rtl'],
cursor: not-allowed;
}

[data-sonner-toast]:hover [data-close-button] {
opacity: 1;
}
[data-sonner-toast]:focus [data-close-button] {
opacity: 1;
}
[data-sonner-toast]:focus-within [data-close-button] {
opacity: 1;
}

[data-sonner-toast]:hover [data-close-button]:hover {
background: var(--gray2);
border-color: var(--gray5);
Expand Down

0 comments on commit 48a109d

Please sign in to comment.