Skip to content

Commit

Permalink
fix(notification): unblock UI beneath Notification (#3661)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-s-titov authored Sep 18, 2024
1 parent fe4fede commit 33b34d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/components/notification/Notification.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
height: 0; /* allows elements around notifications to be clickable */
}

.notification-container {
height: 0;
}

.notification {
display: flex;
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion src/components/notification/NotificationsWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type Props = {

const NotificationsWrapper = ({ children }: Props) => (
<Portal className="notifications-wrapper" aria-live="polite">
{children ? <FocusTrap>{children}</FocusTrap> : null}
{children ? <FocusTrap className="notification-container">{children}</FocusTrap> : null}
</Portal>
);

Expand Down

0 comments on commit 33b34d9

Please sign in to comment.