Skip to content

Commit 365f18a

Browse files
Merge branch 'dev'
2 parents 29bfcf0 + 185f148 commit 365f18a

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

script/utils/NotificationSystem.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export class NotificationSystem {
1515
z-index: 10000;
1616
max-width: 400px;
1717
pointer-events: none;
18+
color: white !important;
1819
`;
1920
document.body.appendChild(this.container);
2021
}
@@ -59,13 +60,15 @@ export class NotificationSystem {
5960
cursor: pointer;
6061
position: relative;
6162
overflow: hidden;
63+
color: white !important;
6264
`;
6365

6466
const content = document.createElement('div');
6567
content.style.cssText = `
6668
display: flex;
6769
align-items: center;
6870
gap: 0.5rem;
71+
color: white !important;
6972
`;
7073

7174
const icon = document.createElement('span');
@@ -81,7 +84,7 @@ export class NotificationSystem {
8184
closeBtn.style.cssText = `
8285
background: none;
8386
border: none;
84-
color: white;
87+
color: white !important;
8588
font-size: 1.5rem;
8689
cursor: pointer;
8790
padding: 0;
@@ -173,7 +176,7 @@ export class NotificationSystem {
173176
element.className = 'notification notification-progress';
174177
element.style.cssText = `
175178
background: var(--primary-color);
176-
color: white;
179+
color: white !important;
177180
padding: 1rem 1.5rem;
178181
margin-bottom: 0.5rem;
179182
border-radius: 6px;
@@ -195,6 +198,7 @@ export class NotificationSystem {
195198
height: 4px;
196199
border-radius: 2px;
197200
overflow: hidden;
201+
color: var(--text-primary);
198202
`;
199203

200204
const progressFill = document.createElement('div');
@@ -203,6 +207,7 @@ export class NotificationSystem {
203207
height: 100%;
204208
width: 0%;
205209
transition: width 0.3s ease;
210+
color: var(--text-primary);
206211
`;
207212

208213
progressBar.appendChild(progressFill);
@@ -259,12 +264,13 @@ export class NotificationSystem {
259264

260265
const dialog = document.createElement('div');
261266
dialog.style.cssText = `
262-
background: white;
267+
background: var(--bg-white-solid);
263268
padding: 2rem;
264269
border-radius: 8px;
265270
max-width: 400px;
266271
width: 90%;
267272
text-align: center;
273+
color: var(--text-primary);
268274
`;
269275

270276
dialog.innerHTML = `

style/master.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@
2222
/* Utilities and responsive */
2323
@import 'utilities.css';
2424
@import 'animations.css';
25+
@import 'notifications.css';
2526
@import 'responsive.css';

style/notifications.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.notification {
2+
color: white !important;
3+
}
4+
5+
.notification span {
6+
color: white !important;
7+
}

0 commit comments

Comments
 (0)