From 46b0ac0587117a87fd2fc675f344288dc2466e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Mon, 17 Jun 2019 17:12:06 +0200 Subject: [PATCH] Several contrast fixes --- .../_dialogs/create-comment/create-comment.component.scss | 5 +++++ .../shared/comment-list/comment-list.component.scss | 2 +- src/theme/dark-theme/darkTheme.const.ts | 2 +- src/theme/default-theme/_variables.scss | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/app/components/shared/_dialogs/create-comment/create-comment.component.scss b/src/app/components/shared/_dialogs/create-comment/create-comment.component.scss index fd6c36de1..2e0712ce2 100644 --- a/src/app/components/shared/_dialogs/create-comment/create-comment.component.scss +++ b/src/app/components/shared/_dialogs/create-comment/create-comment.component.scss @@ -26,3 +26,8 @@ textarea { mat-hint { color: var(--on-surface) !important; } + +::placeholder { + color: var(--on-primary); + opacity: 1; +} diff --git a/src/app/components/shared/comment-list/comment-list.component.scss b/src/app/components/shared/comment-list/comment-list.component.scss index a1dd71f93..150eb5f1f 100644 --- a/src/app/components/shared/comment-list/comment-list.component.scss +++ b/src/app/components/shared/comment-list/comment-list.component.scss @@ -98,7 +98,7 @@ h4 { } .counter-filtered { - background-color: var(--secondary); + background-color: var(--secondary-variant); color: var(--on-secondary); } diff --git a/src/theme/dark-theme/darkTheme.const.ts b/src/theme/dark-theme/darkTheme.const.ts index d31e4f3de..f86db1480 100644 --- a/src/theme/dark-theme/darkTheme.const.ts +++ b/src/theme/dark-theme/darkTheme.const.ts @@ -11,7 +11,7 @@ export const dark = { '--dialog': '#757575', '--on-primary': '#000000', - '--on-secondary': '#000000', + '--on-secondary': '#FFFFFF', '--on-background': '#FFFFFF', '--on-surface': '#FFFFFF', diff --git a/src/theme/default-theme/_variables.scss b/src/theme/default-theme/_variables.scss index b12daaf80..a6915f2db 100644 --- a/src/theme/default-theme/_variables.scss +++ b/src/theme/default-theme/_variables.scss @@ -2,7 +2,7 @@ // Define the palettes for your theme using the Material Design palettes available in palette.scss // (imported above). For each palette, you can optionally specify a default, lighter, and darker // hue. Available color palettes: https://www.google.com/design/spec/style/color.html -$arsnova-primary: mat-palette($mat-green,300); +$arsnova-primary: mat-palette($mat-grey,900); $arsnova-accent: mat-palette($mat-orange, 200); //$mat-blue-gray, A200, A100, A400); // The warn palette is optional (defaults to red). -- GitLab