Skip to content

Commit

Permalink
Make cookie consent component not to receive mouse events when closed
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbyul-here committed Sep 26, 2024
1 parent 8967eaf commit fb3889e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/scripts/components/common/cookie-consent/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.animation--fade-out {
transition: opacity 0.5s ease-in-out 0.125s;
}

.pointer-events--none {
pointer-events: none;
}
2 changes: 1 addition & 1 deletion app/scripts/components/common/cookie-consent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const CookieConsent = ({
<div
id='cookie-consent'
className={`margin-0 tablet:margin-2 shadow-2 position-fixed z-top maxw-full tablet:maxw-tablet-lg animation--fade-out right-0 bottom-0 ${
cookieConsentResponded || closeConsent ? ' opacity-0' : 'opacity-1'
cookieConsentResponded || closeConsent ? ' opacity-0 z-bottom pointer-events--none' : 'opacity-1 z-top'
}`}
>
<USWDSAlert
Expand Down

0 comments on commit fb3889e

Please sign in to comment.