Skip to content

Commit 2b2733a

Browse files
committed
[Fix] Shadows in toast
Signed-off-by: Mohamed Javid <[email protected]>
1 parent 97ae80a commit 2b2733a

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/quo2/components/notifications/toast/style.cljs

+13-13
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
[quo2.foundations.colors :as colors]
44
[quo2.foundations.shadows :as shadows]))
55

6-
(def box-container
7-
{:margin-horizontal 12
8-
:border-radius 12
9-
:overflow :hidden})
6+
(defn box-container
7+
[theme]
8+
(merge (shadows/get 1 theme)
9+
{:margin-horizontal 12
10+
:border-radius 12
11+
:overflow :hidden}))
1012

1113
(def blur-container
1214
{:height "100%"
@@ -19,15 +21,13 @@
1921

2022
(defn content-container
2123
[theme]
22-
(merge
23-
(shadows/get 1 theme)
24-
{:background-color (colors/theme-colors colors/neutral-80-opa-70 colors/white-opa-70 theme)
25-
:flex-direction :row
26-
:justify-content :space-between
27-
:padding-vertical 8
28-
:padding-left 10
29-
:padding-right 8
30-
:border-radius 12}))
24+
{:background-color (colors/theme-colors colors/neutral-80-opa-70 colors/white-opa-70 theme)
25+
:flex-direction :row
26+
:justify-content :space-between
27+
:padding-vertical 8
28+
:padding-left 10
29+
:padding-right 8
30+
:border-radius 12})
3131

3232
(defn title
3333
[theme]

src/quo2/components/notifications/toast/view.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
(defn- toast-container-internal
3939
[{:keys [left title text right container-style theme]}]
40-
[rn/view {:style (merge style/box-container container-style)}
40+
[rn/view {:style (merge (style/box-container theme) container-style)}
4141
[blur/view
4242
{:style style/blur-container
4343
:blur-amount 13

0 commit comments

Comments
 (0)