Skip to content

Commit ee109b4

Browse files
committed
fix: Only add 'aria-describedby' when 'description' exists
1 parent 07e502b commit ee109b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ActionList/Item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ export function Item(itemProps: Partial<ItemProps> & {item?: ItemInput}): JSX.El
356356
showDivider={showDivider}
357357
aria-selected={selected}
358358
aria-labelledby={text ? `${id}-label` : undefined}
359-
aria-describedby={text ? `${id}-description` : undefined}
359+
aria-describedby={description ? `${id}-description` : undefined}
360360
{...props}
361361
data-id={id}
362362
onKeyPress={keyPressHandler}

0 commit comments

Comments
 (0)