Skip to content

Commit ee5d249

Browse files
committed
chore: aria-labels-fix
1 parent 7ddd427 commit ee5d249

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

src/lib/form/datepicker/time-control.tsx

+9-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,18 @@ const TimeControl: React.FC<ITimeControl> = ({ minValue }) => {
1414
aria-label="time-selection"
1515
>
1616
<header className="border-b-klerosUIComponentsStroke flex h-16 items-center justify-center border-b">
17-
<h2 className="text-klerosUIComponentsPrimaryText text-base font-semibold">
17+
<h2
18+
className="text-klerosUIComponentsPrimaryText text-base font-semibold"
19+
id="time-selection-label"
20+
>
1821
Time
1922
</h2>
2023
</header>
21-
<div role="group" className="flex grow flex-col">
24+
<div
25+
role="group"
26+
className="flex grow flex-col"
27+
aria-labelledby="time-selection-label"
28+
>
2229
<div
2330
className={clsx(
2431
"h-16 w-full grow",

src/lib/progress/steps/horizontal.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const HorizontalSteps: React.FC<StepsProps> = ({
1515
className,
1616
)}
1717
{...props}
18-
aria-orientation="horizontal"
1918
aria-label="Horizontal progress steps"
2019
>
2120
{items.map((item, i) => (

src/lib/progress/steps/vertical.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const Steps: React.FC<StepsProps> = ({
1212
return (
1313
<ol
1414
className={cn("flex h-full flex-col", className)}
15-
aria-orientation="vertical"
1615
aria-label="Vertical progress steps"
1716
>
1817
<div className="flex h-auto grow flex-col">

0 commit comments

Comments
 (0)