@@ -22,7 +22,7 @@ <h1 class="text-xl font-semibold text-zinc-900 dark:text-white">
2222 class ="px-4 w-full flex justify-between items-center py-2 text-zinc-800 dark:text-zinc-200 font-medium text-lg ease-linear hover:bg-zinc-200/50 dark:hover:bg-zinc-800/40 rounded-md focus:outline-blue-600 aria-expanded:text-blue-600 ">
2323 Is it accessible?
2424 </ button >
25- < div aria-hidden ="true " data-accordion-content
25+ < div aria-hidden ="false " data-state =" open " data-accordion-content
2626 class ="text-zinc-700 dark:text-zinc-300 duration-200 ease-linear h-0 fx-open:h-auto overflow-hidden ">
2727 < p class ="p-4 ">
2828 Yes. It adheres to the WAI-ARIA design pattern.
@@ -156,7 +156,7 @@ <h1 class="text-xl font-semibold text-zinc-900 dark:text-white">
156156 clip-rule ="evenodd "> </ path >
157157 </ svg >
158158 </ button >
159- < div aria-hidden ="true " data-accordion-content
159+ < div aria-hidden ="false " data-state =" open " data-accordion-content
160160 class ="text-zinc-700 dark:text-zinc-300 duration-200 ease-linear h-0 fx-open:h-auto overflow-hidden ">
161161 < p class ="p-4 ">
162162 Yes. It adheres to the WAI-ARIA design pattern.
@@ -278,7 +278,7 @@ <h1 class="text-xl font-semibold text-zinc-900 dark:text-white">
278278 < div data-accordion-4 class ="space-y-2 ">
279279 < div data-accordion-item data-accordion-value ="accordion-1 "
280280 class ="rounded-md bg-zinc-100/5 dark:bg-zinc-900/5 border border-zinc-200/30 dark:border-zinc-800/20 fx-open:bg-zinc-100/80 dark:fx-open:bg-zinc-900/60 fx-open:border-zinc-200/50 dark:fx-open:border-zinc-800/40 ">
281- < button data-accordion-trigger aria-label ="toggle button "
281+ < button data-accordion-trigger aria-expanded =" true " aria- label ="toggle button "
282282 class ="px-4 w-full flex justify-between items-center py-2 text-zinc-800 dark:text-zinc-200 font-medium text-lg ease-linear hover:bg-zinc-200/50 dark:hover:bg-zinc-800/40 rounded-md focus:outline-blue-600 group ">
283283 Is it accessible?
284284 < svg aria-hidden ="true " xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 20 20 " fill ="currentColor "
@@ -288,69 +288,7 @@ <h1 class="text-xl font-semibold text-zinc-900 dark:text-white">
288288 clip-rule ="evenodd "> </ path >
289289 </ svg >
290290 </ button >
291- < div aria-hidden ="true " data-accordion-content
292- class ="text-zinc-700 dark:text-zinc-300 duration-200 ease-linear h-0 fx-open:h-auto overflow-hidden ">
293- < p class ="p-4 ">
294- Yes. It adheres to the WAI-ARIA design pattern.
295- </ p >
296- </ div >
297- </ div >
298- < div data-accordion-item data-accordion-value ="accordion-2 "
299- class ="rounded-md bg-zinc-100/5 dark:bg-zinc-900/5 border border-zinc-200/30 dark:border-zinc-800/20 fx-open:bg-zinc-100/80 dark:fx-open:bg-zinc-900/60 fx-open:border-zinc-200/50 dark:fx-open:border-zinc-800/40 ">
300- < button data-accordion-trigger aria-label ="toggle button "
301- class ="px-4 w-full flex justify-between items-center py-2 text-zinc-800 dark:text-zinc-200 font-medium text-lg ease-linear hover:bg-zinc-200/50 dark:hover:bg-zinc-800/40 rounded-md focus:outline-blue-600 group ">
302- Is it unstyled?
303- < svg aria-hidden ="true " xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 20 20 " fill ="currentColor "
304- class ="size-5 ease-linear duration-300 group:aria-expanded:rotate-180 ">
305- < path fill-rule ="evenodd "
306- d ="M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z "
307- clip-rule ="evenodd "> </ path >
308- </ svg >
309- </ button >
310- < div aria-hidden ="true " data-accordion-content
311- class ="text-zinc-700 dark:text-zinc-300 duration-200 ease-linear h-0 fx-open:h-auto overflow-hidden ">
312- < p class ="p-4 ">
313- Yes. It's unstyled by default, giving you freedom over the look and feel.
314- </ p >
315- </ div >
316- </ div >
317- < div data-accordion-item data-accordion-value ="accordion-3 "
318- class ="rounded-md bg-zinc-100/5 dark:bg-zinc-900/5 border border-zinc-200/30 dark:border-zinc-800/20 fx-open:bg-zinc-100/80 dark:fx-open:bg-zinc-900/60 fx-open:border-zinc-200/50 dark:fx-open:border-zinc-800/40 ">
319- < button data-accordion-trigger aria-label ="toggle button "
320- class ="px-4 w-full flex justify-between items-center py-2 text-zinc-800 dark:text-zinc-200 font-medium text-lg ease-linear hover:bg-zinc-200/50 dark:hover:bg-zinc-800/40 rounded-md focus:outline-blue-600 group ">
321- Can it be animated?
322- < svg aria-hidden ="true " xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 20 20 " fill ="currentColor "
323- class ="size-5 ease-linear duration-300 group:aria-expanded:rotate-180 ">
324- < path fill-rule ="evenodd "
325- d ="M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z "
326- clip-rule ="evenodd "> </ path >
327- </ svg >
328- </ button >
329- < div aria-hidden ="true " data-accordion-content
330- class ="text-zinc-700 dark:text-zinc-300 duration-200 ease-linear h-0 fx-open:h-auto overflow-hidden ">
331- < p class ="p-4 ">
332- Yes! You can use the transition prop to configure the animation.
333- </ p >
334- </ div >
335- </ div >
336- </ div >
337- </ div >
338- </ div >
339- < div class ="space-y-6 ">
340- < h1 class ="text-xl font-semibold text-zinc-900 dark:text-white ">
341- Allow trigger On item Focus
342- </ h1 >
343- < div class ="p-6 rounded-lg border border-zinc-200 dark:border-zinc-900 ">
344- < div data-accordion-5 class ="space-y-2 ">
345- < div data-accordion-item data-accordion-value ="accordion-1 "
346- class ="rounded-md bg-zinc-100/5 dark:bg-zinc-900/5 border border-zinc-200/30 dark:border-zinc-800/20 fx-open:bg-zinc-100/80 dark:fx-open:bg-zinc-900/60 fx-open:border-zinc-200/50 dark:fx-open:border-zinc-800/40 ">
347- < button data-accordion-trigger aria-label ="toggle button "
348- class ="px-4 w-full flex justify-between items-center py-2 text-zinc-800 dark:text-zinc-200 font-medium text-lg ease-linear hover:bg-zinc-200/50 dark:hover:bg-zinc-800/40 rounded-md focus:outline-blue-600 group ">
349- Is it accessible?
350- < span
351- class ="ease-linear duration-300 i-carbon-chevron-down group-aria-expanded:rotate-180 text-md "> </ span >
352- </ button >
353- < div aria-hidden ="true " data-accordion-content
291+ < div aria-hidden ="false " data-state ="open " data-accordion-content
354292 class ="text-zinc-700 dark:text-zinc-300 duration-200 ease-linear h-0 fx-open:h-auto overflow-hidden ">
355293 < p class ="p-4 ">
356294 Yes. It adheres to the WAI-ARIA design pattern.
@@ -401,5 +339,4 @@ <h1 class="text-xl font-semibold text-zinc-900 dark:text-white">
401339 </ section >
402340 < script type ="module " src ="./main.ts "> </ script >
403341</ body >
404-
405342</ html >
0 commit comments