From 64febc61738c748d8bdcfc43cc94a3055eb6bc65 Mon Sep 17 00:00:00 2001 From: Maximilian Schoell Date: Tue, 28 Jul 2026 21:02:39 +0200 Subject: [PATCH] fix: scope vr with :not(.awsui-one-theme) --- style-dictionary/visual-refresh-secondary/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/style-dictionary/visual-refresh-secondary/index.ts b/style-dictionary/visual-refresh-secondary/index.ts index 25690631a0..e8e6de6ced 100644 --- a/style-dictionary/visual-refresh-secondary/index.ts +++ b/style-dictionary/visual-refresh-secondary/index.ts @@ -11,7 +11,8 @@ const modes = [ createMotionMode('.awsui-motion-disabled'), ]; -const builder = new ThemeBuilder('visual-refresh', '.awsui-visual-refresh', modes); +// Scoped with :not(.awsui-one-theme) so one-theme takes precedence when both classes are present. +const builder = new ThemeBuilder('visual-refresh', '.awsui-visual-refresh:not(.awsui-one-theme)', modes); const theme = buildVisualRefresh(builder); export default theme;