From ffe42c50607b21c57b6fd6e7d89cd27d353116b7 Mon Sep 17 00:00:00 2001 From: Mikkel Laursen Date: Fri, 3 Nov 2023 22:56:15 -0400 Subject: [PATCH] chore(core): do not add rmd-current-color-background class --- packages/core/src/cssUtils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/src/cssUtils.ts b/packages/core/src/cssUtils.ts index 07fdad9e6b..becfbee436 100644 --- a/packages/core/src/cssUtils.ts +++ b/packages/core/src/cssUtils.ts @@ -206,7 +206,9 @@ export function cssUtils(options: CssUtilsOptions): string { !backgroundColor && !isTextColor && textColor && `rmd-${textColor}-color`, !backgroundColor && isTextColor && `rmd-${textColor}-color`, backgroundColor && "rmd-background-container", - backgroundColor && `rmd-${backgroundColor}-container`, + backgroundColor && + backgroundColor !== "current-color" && + `rmd-${backgroundColor}-container`, outlineColor && "rmd-outline", outlineColor && `rmd-${outlineColor}-outline`, (isMarginTop || margin === "bottom") &&