From 07fd830f14c406730dda5bc3f92d050e9f7418a6 Mon Sep 17 00:00:00 2001 From: ssarahgm Date: Wed, 30 Oct 2024 14:15:19 +0100 Subject: [PATCH] fixed broken css class --- themes/theme-b2b/src/components/DateField.styles.ts | 2 +- themes/theme-core/src/components/DateField.styles.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/theme-b2b/src/components/DateField.styles.ts b/themes/theme-b2b/src/components/DateField.styles.ts index 76b19670d1..cdfc4dcee9 100644 --- a/themes/theme-b2b/src/components/DateField.styles.ts +++ b/themes/theme-b2b/src/components/DateField.styles.ts @@ -18,7 +18,7 @@ export const DateField: ThemeComponent<'DateField'> = { segment: cva([ 'group/segment', 'text-center leading-none outline-0', - '[data-type="literal]"' && 'p-[0.75px]', + 'data-[type="literal"]:p-[0.75px]', 'rounded-sm', 'focus:bg-bg-accent focus:text-text-inverted', 'aria-[readonly]:focus:border-border-base aria-[readonly]:focus:outline-none', diff --git a/themes/theme-core/src/components/DateField.styles.ts b/themes/theme-core/src/components/DateField.styles.ts index a1b415d98f..8961c71738 100644 --- a/themes/theme-core/src/components/DateField.styles.ts +++ b/themes/theme-core/src/components/DateField.styles.ts @@ -13,7 +13,7 @@ export const DateField: ThemeComponent<'DateField'> = { segment: cva([ 'group/segment', 'text-center leading-none outline-0', - '[data-type="literal]"' && 'p-[0.75px]', + 'data-[type="literal"]:p-[0.75px]', 'rounded-sm', 'focus:bg-bg-selected focus:text-text-inverted', 'data-[placeholder=true]:text-text-inverted-disabled',