From 878cf0841f18a2f8aec39807393070fd47996776 Mon Sep 17 00:00:00 2001 From: Melisa Anabella Rossi Date: Tue, 26 Mar 2024 14:53:00 -0300 Subject: [PATCH] feat: notification light theme (#521) --- .storybook/theme.tsx | 2 ++ README.md | 1 + src/components/IconBadge/IconBadge.css | 1 + src/components/Notifications/NotificationsFeed.css | 4 ++-- src/themes/alternative/dark-theme.css | 1 + src/themes/alternative/light-theme.css | 1 + 6 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.storybook/theme.tsx b/.storybook/theme.tsx index ec3204ea..17a5dfd0 100644 --- a/.storybook/theme.tsx +++ b/.storybook/theme.tsx @@ -51,6 +51,7 @@ const LIGHT_THEME = ` --shadow-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.08); --shadow-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.12); --shadow-3: 0px 16px 32px 0px rgba(0, 0, 0, 0.16); + --shadow-4: 0px 8px 16px 12px rgba(0, 0, 0, 0.1); --shadow-color-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.16); --shadow-color-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.2); @@ -119,6 +120,7 @@ const DARK_THEME = ` --shadow-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.16); --shadow-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.24); --shadow-3: 0px 16px 32px 0px rgba(0, 0, 0, 0.32); + --shadow-4: 0px 8px 16px 12px rgba(0, 0, 0, 0.8); --shadow-color-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.16); --shadow-color-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.24); diff --git a/README.md b/README.md index 96183f3b..62cb22ba 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,7 @@ Or you can create your own theme like this: --shadow-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.08); --shadow-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.12); --shadow-3: 0px 16px 32px 0px rgba(0, 0, 0, 0.16); + --shadow-4: 0px 8px 16px 12px rgba(0, 0, 0, 0.1); --shadow-color-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.16); --shadow-color-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.2); diff --git a/src/components/IconBadge/IconBadge.css b/src/components/IconBadge/IconBadge.css index d8cc0bd5..a9ff7c46 100644 --- a/src/components/IconBadge/IconBadge.css +++ b/src/components/IconBadge/IconBadge.css @@ -10,6 +10,7 @@ .dui-icon-badge .text { font-size: 13px; + color: white; } .dui-icon-badge .dui-icon-badge__icon { diff --git a/src/components/Notifications/NotificationsFeed.css b/src/components/Notifications/NotificationsFeed.css index b01657ac..3367186c 100644 --- a/src/components/Notifications/NotificationsFeed.css +++ b/src/components/Notifications/NotificationsFeed.css @@ -8,7 +8,7 @@ z-index: 100; border-radius: 8px; background: var(--background); - box-shadow: 0px 8px 16px 12px rgba(0, 0, 0, 0.8); + box-shadow: var(--shadow-4); transition: opacity 0.3s ease; } @@ -77,7 +77,7 @@ height: 100%; justify-content: space-between; max-height: 290px; - overflow-y: scroll; + overflow-y: auto; overscroll-behavior-y: contain; } diff --git a/src/themes/alternative/dark-theme.css b/src/themes/alternative/dark-theme.css index 6e0deee1..03f0882d 100644 --- a/src/themes/alternative/dark-theme.css +++ b/src/themes/alternative/dark-theme.css @@ -43,6 +43,7 @@ --shadow-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.16); --shadow-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.24); --shadow-3: 0px 16px 32px 0px rgba(0, 0, 0, 0.32); + --shadow-4: 0px 8px 16px 12px rgba(0, 0, 0, 0.8); --shadow-color-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.16); --shadow-color-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.24); diff --git a/src/themes/alternative/light-theme.css b/src/themes/alternative/light-theme.css index 03a2ebe0..ccf6c6c8 100644 --- a/src/themes/alternative/light-theme.css +++ b/src/themes/alternative/light-theme.css @@ -43,6 +43,7 @@ --shadow-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.08); --shadow-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.12); --shadow-3: 0px 16px 32px 0px rgba(0, 0, 0, 0.16); + --shadow-4: 0px 8px 16px 12px rgba(0, 0, 0, 0.1); --shadow-color-1: 0px 2px 4px 0px rgba(0, 0, 0, 0.16); --shadow-color-2: 0px 10px 20px 0px rgba(0, 0, 0, 0.2);