From 6c7c2f02f395747a0c68a499630f502e3f02ded3 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 2 Oct 2024 18:51:32 +0200 Subject: [PATCH] fix(Accordion): use `text-left break-words` instead of `truncate` on label --- src/theme/accordion.ts | 2 +- .../__snapshots__/Accordion.spec.ts.snap | 204 +++++++++--------- 2 files changed, 103 insertions(+), 103 deletions(-) diff --git a/src/theme/accordion.ts b/src/theme/accordion.ts index 17eecf0b..7bd4aa93 100644 --- a/src/theme/accordion.ts +++ b/src/theme/accordion.ts @@ -8,7 +8,7 @@ export default { body: 'text-sm pb-3.5', leadingIcon: 'shrink-0 size-5', trailingIcon: 'shrink-0 size-5 ms-auto group-data-[state=open]:rotate-180 transition-transform duration-200', - label: 'truncate' + label: 'text-left break-words' }, variants: { disabled: { diff --git a/test/components/__snapshots__/Accordion.spec.ts.snap b/test/components/__snapshots__/Accordion.spec.ts.snap index f4a8ed53..32da6420 100644 --- a/test/components/__snapshots__/Accordion.spec.ts.snap +++ b/test/components/__snapshots__/Accordion.spec.ts.snap @@ -3,37 +3,37 @@ exports[`Accordion > renders with as correctly 1`] = ` "
-

+

-

+

-

+

-

+

-

+

-

+

@@ -44,37 +44,37 @@ exports[`Accordion > renders with as correctly 1`] = ` exports[`Accordion > renders with body slot correctly 1`] = ` "
-

+

-

+

Body slot
-

+

-

+

-

+

-

+

@@ -85,37 +85,37 @@ exports[`Accordion > renders with body slot correctly 1`] = ` exports[`Accordion > renders with class correctly 1`] = ` "
-

+

-

+

-

+

-

+

-

+

-

+

@@ -126,37 +126,37 @@ exports[`Accordion > renders with class correctly 1`] = ` exports[`Accordion > renders with collapsible correctly 1`] = ` "
-

+

-

+

-

+

-

+

-

+

-

+

@@ -167,35 +167,35 @@ exports[`Accordion > renders with collapsible correctly 1`] = ` exports[`Accordion > renders with content slot correctly 1`] = ` "
-

+

-

+

Content slot
-

+

-

+

-

+

-

+

@@ -206,37 +206,37 @@ exports[`Accordion > renders with content slot correctly 1`] = ` exports[`Accordion > renders with custom body slot correctly 1`] = ` "
-

+

-

+

-

+

-

+

-

+

-

+

Custom body slot
@@ -247,37 +247,37 @@ exports[`Accordion > renders with custom body slot correctly 1`] = ` exports[`Accordion > renders with custom slot correctly 1`] = ` "
-

+

-

+

-

+

-

+

-

+

-

+

Custom slot
" @@ -286,37 +286,37 @@ exports[`Accordion > renders with custom slot correctly 1`] = ` exports[`Accordion > renders with default slot correctly 1`] = ` "
-

+

-

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed neque elit, tristique placerat feugiat ac, facilisis vitae arcu. Proin eget egestas augue. Praesent ut sem nec arcu pellentesque aliquet. Duis dapibus diam vel metus tempus vulputate.
-

+

-

+

-

+

-

+

@@ -327,37 +327,37 @@ exports[`Accordion > renders with default slot correctly 1`] = ` exports[`Accordion > renders with defaultValue correctly 1`] = ` "
-

+

-

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed neque elit, tristique placerat feugiat ac, facilisis vitae arcu. Proin eget egestas augue. Praesent ut sem nec arcu pellentesque aliquet. Duis dapibus diam vel metus tempus vulputate.
-

+

-

+

-

+

-

+

@@ -368,37 +368,37 @@ exports[`Accordion > renders with defaultValue correctly 1`] = ` exports[`Accordion > renders with disabled correctly 1`] = ` "
-

+

-

+

-

+

-

+

-

+

-

+

@@ -409,37 +409,37 @@ exports[`Accordion > renders with disabled correctly 1`] = ` exports[`Accordion > renders with items correctly 1`] = ` "
-

+

-

+

-

+

-

+

-

+

-

+

@@ -450,37 +450,37 @@ exports[`Accordion > renders with items correctly 1`] = ` exports[`Accordion > renders with leading slot correctly 1`] = ` "
-

+

-

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed neque elit, tristique placerat feugiat ac, facilisis vitae arcu. Proin eget egestas augue. Praesent ut sem nec arcu pellentesque aliquet. Duis dapibus diam vel metus tempus vulputate.
-

+

-

+

-

+

-

+

@@ -491,37 +491,37 @@ exports[`Accordion > renders with leading slot correctly 1`] = ` exports[`Accordion > renders with modelValue correctly 1`] = ` "
-

+

-

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed neque elit, tristique placerat feugiat ac, facilisis vitae arcu. Proin eget egestas augue. Praesent ut sem nec arcu pellentesque aliquet. Duis dapibus diam vel metus tempus vulputate.
-

+

-

+

-

+

-

+

@@ -532,37 +532,37 @@ exports[`Accordion > renders with modelValue correctly 1`] = ` exports[`Accordion > renders with trailing slot correctly 1`] = ` "
-

+

-

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed neque elit, tristique placerat feugiat ac, facilisis vitae arcu. Proin eget egestas augue. Praesent ut sem nec arcu pellentesque aliquet. Duis dapibus diam vel metus tempus vulputate.
-

+

-

+

-

+

-

+

@@ -573,37 +573,37 @@ exports[`Accordion > renders with trailing slot correctly 1`] = ` exports[`Accordion > renders with trailingIcon correctly 1`] = ` "
-

+

-

+

-

+

-

+

-

+

-

+

@@ -614,37 +614,37 @@ exports[`Accordion > renders with trailingIcon correctly 1`] = ` exports[`Accordion > renders with type correctly 1`] = ` "
-

+

-

+

-

+

-

+

-

+

-

+

@@ -655,37 +655,37 @@ exports[`Accordion > renders with type correctly 1`] = ` exports[`Accordion > renders with ui correctly 1`] = ` "
-

+

-

+

-

+

-

+

-

+

-

+