Skip to content

Commit

Permalink
fix(AppSwitcher): aria-describedby only defined when a description ex…
Browse files Browse the repository at this point in the history
…ists
  • Loading branch information
MEsteves22 committed Jul 31, 2023
1 parent a363474 commit c4a8754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/components/AppSwitcher/Action/Action.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ export const HvAppSwitcherAction = ({
className={classes.typography}
onClick={handleOnClick}
style={{ borderColor: color }}
aria-describedby={descriptionElementId}
aria-label={name}
{...(description && { "aria-describedby": descriptionElementId })}
>
<div className={classes.icon}>{renderApplicationIcon()}</div>

Expand Down

0 comments on commit c4a8754

Please sign in to comment.