From bc6a0585551800272e263cc6d8fccdfa0ab21dcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Gla=CC=88ser?= Date: Fri, 29 May 2026 16:04:00 +0200 Subject: [PATCH] Fix unified score-state box model across chart states --- styles/41-components-charts.css | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/styles/41-components-charts.css b/styles/41-components-charts.css index 86e2067..62dafa7 100644 --- a/styles/41-components-charts.css +++ b/styles/41-components-charts.css @@ -19,13 +19,26 @@ --layout-score-bar-item-columns: var(--layout-score-bar-item-single-score-columns); } -.sg-score-state--positive { +.sg-score-state--positive, +.sg-score-state--neutral, +.sg-score-state--negative { margin: 0; justify-self: end; text-align: right; +} + +.sg-score-state--positive { color: var(--text-score-state-positive); } +.sg-score-state--neutral { + color: var(--text-score-state-neutral); +} + +.sg-score-state--negative { + color: var(--text-score-state-negative); +} + .sg-score-bar-label { margin: 0; color: var(--text-chart-default); @@ -258,4 +271,3 @@ transparent calc(var(--sandwich-line-height) * 2) ); } -