Skip to content

Commit

Permalink
next: accordion tests (#559)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored May 30, 2024
1 parent 28c1c45 commit 71c3232
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/bits-ui/src/lib/bits/accordion/accordion.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import { type UseRovingFocusReturn, useRovingFocus } from "$lib/internal/useRovi
import type { Orientation } from "$lib/shared/index.js";
import { createContext } from "$lib/internal/createContext.js";

const ROOT_ATTR = "accordion-root";
const TRIGGER_ATTR = "accordion-trigger";
const CONTENT_ATTR = "accordion-content";
const ITEM_ATTR = "accordion-item";
const HEADER_ATTR = "accordion-header";
const ROOT_ATTR = "data-accordion-root";
const TRIGGER_ATTR = "data-accordion-trigger";
const CONTENT_ATTR = "data-accordion-content";
const ITEM_ATTR = "data-accordion-item";
const HEADER_ATTR = "data-accordion-header";

//
// BASE
Expand Down Expand Up @@ -60,7 +60,6 @@ class AccordionBaseState {
id: this.id.value,
"data-orientation": getDataOrientation(this.orientation.value),
"data-disabled": getDataDisabled(this.disabled.value),
"aria-orientation": getAriaOrientation(this.orientation.value),
[ROOT_ATTR]: "",
} as const);
}
Expand Down

0 comments on commit 71c3232

Please sign in to comment.