From d3887a7410fb21b025a414b925b0737dcb0d180e Mon Sep 17 00:00:00 2001 From: Hunter Johnston Date: Fri, 12 Apr 2024 13:43:44 -0400 Subject: [PATCH] fix open closed accordion trigger --- packages/bits-ui/src/lib/internal/attrs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bits-ui/src/lib/internal/attrs.ts b/packages/bits-ui/src/lib/internal/attrs.ts index d92d5bbfd..e53a1e89b 100644 --- a/packages/bits-ui/src/lib/internal/attrs.ts +++ b/packages/bits-ui/src/lib/internal/attrs.ts @@ -56,8 +56,8 @@ export function disabledAttrs(disabled: boolean | undefined | null) { : { "aria-disabled": undefined, "data-disabled": undefined }; } -export function openClosedAttrs(condition: boolean): "true" | "false" { - return condition ? "true" : "false"; +export function openClosedAttrs(condition: boolean): "open" | "closed" { + return condition ? "open" : "closed"; } export function dataDisabledAttrs(condition: boolean): "" | undefined {