Skip to content

Commit

Permalink
Fix aria-hidden in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
barvian committed Nov 26, 2024
1 parent dcc7290 commit 94fd3e0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function Input({ value = 0, min = -Infinity, max = Infinity, onCh
return (
<div className="group flex items-stretch rounded-md text-3xl font-semibold ring ring-zinc-200 transition-[box-shadow] focus-within:ring-2 focus-within:ring-blue-500 dark:ring-zinc-800">
<button
aria-hidden
aria-hidden="true"
tabIndex={-1}
className="flex items-center pl-[.5em] pr-[.325em]"
disabled={min != null && value <= min}
Expand Down Expand Up @@ -73,7 +73,7 @@ export default function Input({ value = 0, min = -Infinity, max = Infinity, onCh
<NumberFlow
value={value}
format={{ useGrouping: false }}
aria-hidden
aria-hidden="true"
animated={animated}
onAnimationsStart={() => setShowCaret(false)}
onAnimationsFinish={() => setShowCaret(true)}
Expand All @@ -82,7 +82,7 @@ export default function Input({ value = 0, min = -Infinity, max = Infinity, onCh
/>
</div>
<button
aria-hidden
aria-hidden="true"
tabIndex={-1}
className="flex items-center pl-[.325em] pr-[.5em]"
disabled={max != null && value >= max}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<NumberFlow
{value}
format={{ useGrouping: false }}
aria-hidden
aria-hidden="true"
{animated}
on:animationsstart={() => (showCaret = false)}
on:animationsfinish={() => (showCaret = true)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function handlePointerDown(event: PointerEvent, diff: number) {
class="focus-within:ring-accent group flex items-stretch rounded-md text-3xl font-semibold ring ring-zinc-200 transition-[box-shadow] focus-within:ring-2 dark:ring-zinc-800"
>
<button
aria-hidden
aria-hidden="true"
tabindex="{-1}"
class="flex items-center pl-[.5em] pr-[.325em]"
:disabled="min != null && modelValue <= min"
Expand Down Expand Up @@ -78,7 +78,7 @@ function handlePointerDown(event: PointerEvent, diff: number) {
<NumberFlow
:value="modelValue"
:format="{ useGrouping: false }"
aria-hidden
aria-hidden="true"
:animated
@animationsstart="showCaret = false"
@animationsfinish="showCaret = true"
Expand All @@ -87,7 +87,7 @@ function handlePointerDown(event: PointerEvent, diff: number) {
/>
</div>
<button
aria-hidden
aria-hidden="true"
tabindex="-1"
class="flex items-center pl-[.325em] pr-[.5em]"
:disabled="max != null && modelValue >= max"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<NumberFlow
willChange
value={value[0]}
aria-hidden
aria-hidden="true"
continuous
opacityTiming={{
duration: 250,
Expand Down

0 comments on commit 94fd3e0

Please sign in to comment.