Skip to content

Commit

Permalink
fix(klabel): fix aria attributes on tooltip icon (#2454)
Browse files Browse the repository at this point in the history
  • Loading branch information
Justineo authored Oct 15, 2024
1 parent 5031d4b commit 7201572
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/KLabel/KLabel.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<template>
<label
v-bind-once="{ ...(hasTooltip && { 'aria-describedby': tooltipId }) }"
class="k-label"
:class="{ 'required': required }"
>
Expand All @@ -13,9 +12,9 @@
:tooltip-id="tooltipId"
>
<InfoIcon
v-bind-once="{ 'aria-describedby': tooltipId }"
class="tooltip-trigger-icon"
:color="`var(--kui-color-text-neutral, ${KUI_COLOR_TEXT_NEUTRAL})`"
decorative
tabindex="0"
/>
<template #content>
Expand Down

0 comments on commit 7201572

Please sign in to comment.