From 56bcbb908ffbea3ab7b9e61878647dac80d0c17d Mon Sep 17 00:00:00 2001 From: ilkin-overleaf <100852799+ilkin-overleaf@users.noreply.github.com> Date: Wed, 28 Aug 2024 12:10:46 +0300 Subject: [PATCH] Merge pull request #20063 from overleaf/ii-bs5-system-notifications [web] BS5 system notifications GitOrigin-RevId: a5a17a418193e325c0f561708c99240191cff8e7 --- .../frontend/js/shared/components/close.tsx | 13 +++++++++- .../bootstrap-5/components/all.scss | 1 + .../components/system-messages.scss | 25 +++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 services/web/frontend/stylesheets/bootstrap-5/components/system-messages.scss diff --git a/services/web/frontend/js/shared/components/close.tsx b/services/web/frontend/js/shared/components/close.tsx index ac3d622cdd..ecf2bf6e63 100644 --- a/services/web/frontend/js/shared/components/close.tsx +++ b/services/web/frontend/js/shared/components/close.tsx @@ -1,4 +1,6 @@ import { useTranslation } from 'react-i18next' +import MaterialIcon from '@/shared/components/material-icon' +import BootstrapVersionSwitcher from '@/features/ui/components/bootstrap-5/bootstrap-version-switcher' type CloseProps = { onDismiss: React.MouseEventHandler @@ -14,7 +16,16 @@ function Close({ onDismiss, variant = 'light' }: CloseProps) { className={`close pull-right ${variant}`} onClick={onDismiss} > - +