From 589c599f9e4c494e6aa867ded162650805327c95 Mon Sep 17 00:00:00 2001 From: Florian Kissling <21834+fk@users.noreply.github.com> Date: Wed, 30 Oct 2019 15:53:43 +0100 Subject: [PATCH] fix(www): /guidelines/color modal title color for dark mode (#19147) * fix(www): /guidelines/color modal title color * chore(www): Remove utils/guidelines/theme --- www/src/components/guidelines/color/modal.js | 13 ++++++-- www/src/utils/guidelines/color.js | 4 +-- www/src/utils/guidelines/theme.js | 35 -------------------- 3 files changed, 12 insertions(+), 40 deletions(-) delete mode 100644 www/src/utils/guidelines/theme.js diff --git a/www/src/components/guidelines/color/modal.js b/www/src/components/guidelines/color/modal.js index 4e9176b4a9f8a..f05ccedf9bff2 100644 --- a/www/src/components/guidelines/color/modal.js +++ b/www/src/components/guidelines/color/modal.js @@ -164,10 +164,17 @@ const modalContent = (palette, color) => { - + colors.{color}[{colorNumber}] {c.name && c.name} - + {c.contrast.colorOnWhite.toFixed(2)} /{` `} {getA11yLabel(c.a11y)} @@ -190,7 +197,7 @@ const ColorModal = ({ palette, color, handleModalClose }) => { return ( <> - + {palette[color].name}