diff --git a/services/web/frontend/js/features/project-list/components/notifications/notification.tsx b/services/web/frontend/js/features/project-list/components/notifications/notification.tsx
index b60c543b3f..27b464c7e3 100644
--- a/services/web/frontend/js/features/project-list/components/notifications/notification.tsx
+++ b/services/web/frontend/js/features/project-list/components/notifications/notification.tsx
@@ -2,8 +2,8 @@ import { useState } from 'react'
import { Alert, AlertProps } from 'react-bootstrap'
import Body from './body'
import Action from './action'
-import Close from './close'
import classnames from 'classnames'
+import { useTranslation } from 'react-i18next'
type NotificationProps = {
bsStyle: AlertProps['bsStyle']
@@ -20,6 +20,7 @@ function Notification({
...props
}: NotificationProps) {
const [show, setShow] = useState(true)
+ const { t } = useTranslation()
const handleDismiss = () => {
if (onDismiss) {
@@ -35,13 +36,12 @@ function Notification({
return (
-
- {children}
- {onDismiss ? (
-
-
-
- ) : null}
+
+ {children}
)
diff --git a/services/web/frontend/stories/style-guide.stories.js b/services/web/frontend/stories/style-guide.stories.js
index 7fb8f68d69..d8040a863e 100644
--- a/services/web/frontend/stories/style-guide.stories.js
+++ b/services/web/frontend/stories/style-guide.stories.js
@@ -234,6 +234,7 @@ export const Alerts = () => {
Alerts
+ Non-dismissible alerts
An .alert-danger
alert
@@ -246,6 +247,21 @@ export const Alerts = () => {
An .alert-warning
alert
+
+
+ Dismissible alerts
+ {}}>
+ An .alert-danger
alert
+
+ {}}>
+ An .alert-success
alert
+
+ {}}>
+ An .alert-info
alert
+
+ {}}>
+ An .alert-warning
alert
+
diff --git a/services/web/frontend/stylesheets/app/project-list.less b/services/web/frontend/stylesheets/app/project-list.less
index afffeb558c..b0bcfb244a 100644
--- a/services/web/frontend/stylesheets/app/project-list.less
+++ b/services/web/frontend/stylesheets/app/project-list.less
@@ -240,8 +240,7 @@ input.project-list-table-select-item[type='checkbox'] {
margin-bottom: 0px;
}
.notification-entry {
- .alert {
- .box-shadow(2px 4px 6px rgba(0, 0, 0, 0.25));
+ .notification-entry-content {
display: flex;
flex-wrap: wrap;
@media (min-width: @screen-sm-min) {
diff --git a/services/web/frontend/stylesheets/components/alerts.less b/services/web/frontend/stylesheets/components/alerts.less
index e84a12d6e4..7702816fc2 100755
--- a/services/web/frontend/stylesheets/components/alerts.less
+++ b/services/web/frontend/stylesheets/components/alerts.less
@@ -48,6 +48,7 @@
top: -2px;
right: -21px;
color: inherit;
+ text-shadow: none;
}
}