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 27b464c7e3..b60c543b3f 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,7 +20,6 @@ function Notification({
...props
}: NotificationProps) {
const [show, setShow] = useState(true)
- const { t } = useTranslation()
const handleDismiss = () => {
if (onDismiss) {
@@ -36,12 +35,13 @@ function Notification({
return (
-
- {children}
+
+ {children}
+ {onDismiss ? (
+
+
+
+ ) : null}
)
diff --git a/services/web/frontend/stories/style-guide.stories.js b/services/web/frontend/stories/style-guide.stories.js
index d8040a863e..7fb8f68d69 100644
--- a/services/web/frontend/stories/style-guide.stories.js
+++ b/services/web/frontend/stories/style-guide.stories.js
@@ -234,7 +234,6 @@ export const Alerts = () => {
Alerts
- Non-dismissible alerts
An .alert-danger
alert
@@ -247,21 +246,6 @@ 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 b0bcfb244a..afffeb558c 100644
--- a/services/web/frontend/stylesheets/app/project-list.less
+++ b/services/web/frontend/stylesheets/app/project-list.less
@@ -240,7 +240,8 @@ input.project-list-table-select-item[type='checkbox'] {
margin-bottom: 0px;
}
.notification-entry {
- .notification-entry-content {
+ .alert {
+ .box-shadow(2px 4px 6px rgba(0, 0, 0, 0.25));
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 7702816fc2..e84a12d6e4 100755
--- a/services/web/frontend/stylesheets/components/alerts.less
+++ b/services/web/frontend/stylesheets/components/alerts.less
@@ -48,7 +48,6 @@
top: -2px;
right: -21px;
color: inherit;
- text-shadow: none;
}
}