From 09e548fbac63778ee06f346289fa67f13f8aba08 Mon Sep 17 00:00:00 2001 From: James Brunton Date: Thu, 13 Aug 2026 11:10:31 +0100 Subject: [PATCH] Fix a11y on DividerWithText (#7482) # Description of Changes Nightlies are currently failing with an a11y issue on the DividerWithText story. This fixes the a11y issue. image --- .../shared/dividerWithText/DividerWithText.css | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/frontend/editor/src/proprietary/components/shared/dividerWithText/DividerWithText.css b/frontend/editor/src/proprietary/components/shared/dividerWithText/DividerWithText.css index 4d98d87239..43aaee2f83 100644 --- a/frontend/editor/src/proprietary/components/shared/dividerWithText/DividerWithText.css +++ b/frontend/editor/src/proprietary/components/shared/dividerWithText/DividerWithText.css @@ -16,11 +16,7 @@ } .text-divider .text-divider__label { - /* A single channel triple cannot follow the colour scheme, and the old - fallback only reached 3.8:1 on the dark page. The muted text token carries - the readable shade for each scheme; the opacity hook is kept separate. */ color: var(--c-text-muted); - opacity: var(--text-divider-opacity, 1); font-size: 0.75rem; /* 12px */ white-space: nowrap; } @@ -48,13 +44,6 @@ ); } -.text-divider.force-light .text-divider__label { - color: rgb( - var(--text-divider-label-rgb-light, var(--gray-400)) / - var(--text-divider-opacity, 1) - ); -} - .text-divider.subcategory.force-light .text-divider__rule { background-color: var(--tool-subcategory-rule-color-light); }