Skip to content

Commit

Permalink
Resolves: #224 - Close button is always visible on toast when defined (
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbarnesweb authored Dec 23, 2023
1 parent c4ff085 commit 9b0dcae
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

1 comment on commit 9b0dcae

@vercel
Copy link

@vercel vercel bot commented on 9b0dcae Dec 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.