Skip to content

Commit 7ddd427

Browse files
committed
chore: sonar-cloud-review-2
1 parent b4350c4 commit 7ddd427

File tree

8 files changed

+1
-8
lines changed

8 files changed

+1
-8
lines changed

src/lib/breadcrumb.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function Breadcrumb({
4747
<Content
4848
className="text-klerosUIComponentsPrimaryText text-base font-semibold"
4949
{...{ variant }}
50-
key={i}
50+
key={`${text}-${i}`}
5151
>
5252
{text}
5353
</Content>

src/lib/progress/steps/bullet.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ const Bullet: React.FC<BulletProps> = ({
2525
<li
2626
className={cn("flex w-fit grow basis-0", className)}
2727
aria-label={title}
28-
role="listitem"
2928
aria-current={active ? "step" : undefined}
3029
aria-disabled={!active && !completed ? true : undefined}
3130
>

src/lib/progress/steps/horizontal-bullet.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ const HorizontalBullet: React.FC<HorizontalBulletProps> = ({
4848
paddingBottom ? { paddingBottom: `${paddingBottom}px` } : undefined
4949
}
5050
aria-label={title}
51-
role="listitem"
5251
aria-current={active ? "step" : undefined}
5352
aria-disabled={!active && !completed ? true : undefined}
5453
>

src/lib/progress/steps/horizontal.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const HorizontalSteps: React.FC<StepsProps> = ({
1616
)}
1717
{...props}
1818
aria-orientation="horizontal"
19-
role="listbox"
2019
aria-label="Horizontal progress steps"
2120
>
2221
{items.map((item, i) => (

src/lib/progress/steps/vertical.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const Steps: React.FC<StepsProps> = ({
1313
<ol
1414
className={cn("flex h-full flex-col", className)}
1515
aria-orientation="vertical"
16-
role="listbox"
1716
aria-label="Vertical progress steps"
1817
>
1918
<div className="flex h-auto grow flex-col">

src/lib/progress/timeline/bullet.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ const Bullet: React.FC<BulletProps> = (props) => {
3939
className,
4040
)}
4141
aria-label={`Timeline item: ${title}`}
42-
role="listitem"
4342
aria-current={state === "active" ? "step" : undefined}
4443
>
4544
<Spine {...{ variant, line, Icon, titleRef }} />

src/lib/progress/timeline/custom.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ function CustomTimeline({
2626
className={cn("box-border flex flex-col", className)}
2727
{...props}
2828
aria-label="Timeline"
29-
role="list"
3029
>
3130
{items.slice(0, -1).map((item, i) => (
3231
<Bullet key={i} line {...item} rightSided isLast={false} />

src/lib/progress/timeline/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ function Timeline({ items, className, ...props }: Readonly<TimelineProps>) {
2222
className={cn("box-border flex flex-col", className)}
2323
{...props}
2424
aria-label="Timeline"
25-
role="list"
2625
>
2726
{items.slice(0, -1).map((item, i) => (
2827
<Bullet

0 commit comments

Comments
 (0)