Skip to content

Commit

Permalink
fix: cookies dialog button contrast (angular#1010)
Browse files Browse the repository at this point in the history
- fix cookies dialog button contrast in dark mode

Fixes angular#1008
  • Loading branch information
kian23kpt authored and kseamon committed Dec 18, 2024
1 parent 91c2687 commit 5cc66ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
app-cookie-popup {
.popup {
color: if($is-dark-theme,
map.get(map.get(mat.$grey-palette, contrast), 50),
map.get(mat.$dark-theme-foreground-palette, secondary-text)
map.get(mat.$dark-theme-foreground-palette, secondary-text),
map.get(map.get(mat.$grey-palette, contrast), 50)
);
background: if($is-dark-theme, map.get(mat.$grey-palette, 50), #252525);
background: if($is-dark-theme, #252525, map.get(mat.$grey-palette, 50));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
<a
href="https://policies.google.com/technologies/cookies"
mat-button
color="accent"
target="_blank"
rel="noopener">More details</a>
<button mat-button color="accent" (click)="accept()">Ok, Got it</button>
<button mat-button color="primary" (click)="accept()">Ok, Got it</button>
</div>
</div>

0 comments on commit 5cc66ae

Please sign in to comment.