From 417558705b97afa0eeb4ef5227dc889ecca13bee Mon Sep 17 00:00:00 2001 From: lubber-de Date: Wed, 24 Oct 2018 09:13:20 +0200 Subject: [PATCH] feat(toast): Use the same different color on every inverted toast, regardless of background color --- src/definitions/modules/toast.less | 7 ++----- src/themes/default/modules/toast.variables | 1 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/definitions/modules/toast.less b/src/definitions/modules/toast.less index 072baa9c08..6666a9a4a5 100644 --- a/src/definitions/modules/toast.less +++ b/src/definitions/modules/toast.less @@ -186,11 +186,8 @@ .toastColor(~'grey',~'lightGrey'); .toastColor(~'black',~'lightBlack'); -.inverted.yellow.toast, -.inverted.olive.toast, -.inverted.teal.toast, -.inverted.grey.toast { - color: @fullBlack; +.inverted.toast { + color: @toastInvertedTextColor; } /*-------------- diff --git a/src/themes/default/modules/toast.variables b/src/themes/default/modules/toast.variables index 6bcfb235a2..6f117a9ec2 100644 --- a/src/themes/default/modules/toast.variables +++ b/src/themes/default/modules/toast.variables @@ -12,6 +12,7 @@ @toastMarginBottom: 6px; @toastMargin: 0 0 @toastMarginBottom; @toastTextColor: @invertedTextColor; +@toastInvertedTextColor: @textColor; /* on Hover */ @toastOpacityOnHover: 1;