Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 38d3226

Browse files
authored
fix: cookies dialog button contrast (#1010)
- fix cookies dialog button contrast in dark mode Fixes #1008
1 parent 919f806 commit 38d3226

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/app/shared/cookie-popup/_cookie-popup-theme.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
app-cookie-popup {
1313
.popup {
1414
color: if($is-dark-theme,
15-
map.get(map.get(mat.$grey-palette, contrast), 50),
16-
map.get(mat.$dark-theme-foreground-palette, secondary-text)
15+
map.get(mat.$dark-theme-foreground-palette, secondary-text),
16+
map.get(map.get(mat.$grey-palette, contrast), 50)
1717
);
18-
background: if($is-dark-theme, map.get(mat.$grey-palette, 50), #252525);
18+
background: if($is-dark-theme, #252525, map.get(mat.$grey-palette, 50));
1919
}
2020
}
2121
}

src/app/shared/cookie-popup/cookie-popup.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
<a
66
href="https://policies.google.com/technologies/cookies"
77
mat-button
8-
color="accent"
98
target="_blank"
109
rel="noopener">More details</a>
11-
<button mat-button color="accent" (click)="accept()">Ok, Got it</button>
10+
<button mat-button color="primary" (click)="accept()">Ok, Got it</button>
1211
</div>
1312
</div>

0 commit comments

Comments
 (0)