From 5eacb9da6a7f7b7e393bb5159e3a8f557a1acc1a Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Tue, 12 Apr 2022 12:45:23 +0200 Subject: [PATCH] Small tweaks in darkmode (#1976) * The scss variable $popover-border-color is now also used throughout the internal styles * Derived css variable is exported only once * Scss definitions are now organized and structured with descriptive comments * Fix incorrect styling due to a too dark and at the same time very thick border in the CreateButton component * Darken $border-light a little, so that it is not brighter than the border in dark mode --- gradle/changelog/darkmode_simplification.yaml | 4 ++ .../src/__snapshots__/storyshots.test.ts.snap | 2 +- .../src/buttons/CreateButton.tsx | 2 +- scm-ui/ui-styles/src/components/_main.scss | 4 +- scm-ui/ui-styles/src/dark.scss | 26 ++++----- scm-ui/ui-styles/src/highcontrast.scss | 53 ++++++++++--------- scm-ui/ui-styles/src/light.scss | 9 ++-- scm-ui/ui-styles/src/variables/_commons.scss | 11 ++-- 8 files changed, 59 insertions(+), 52 deletions(-) create mode 100644 gradle/changelog/darkmode_simplification.yaml diff --git a/gradle/changelog/darkmode_simplification.yaml b/gradle/changelog/darkmode_simplification.yaml new file mode 100644 index 0000000000..ef19a3a933 --- /dev/null +++ b/gradle/changelog/darkmode_simplification.yaml @@ -0,0 +1,4 @@ +- type: fixed + description: Improve organization of variables in scss ([#1976](https://github.com/scm-manager/scm-manager/pull/1976)) +- type: fixed + description: Small tweaks in darkmode ([#1976](https://github.com/scm-manager/scm-manager/pull/1976)) diff --git a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap index cb01671788..cb58d3851d 100644 --- a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap +++ b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap @@ -891,7 +891,7 @@ exports[`Storyshots Buttons/CreateButton Default 1`] = ` className="indexstories__Spacing-bpoict-0 ieMGHp" >