Skip to content

Commit

Permalink
fix(ktooltip): make tooltip trigger focusable [KHCP-8987]
Browse files Browse the repository at this point in the history
  • Loading branch information
portikM committed Oct 17, 2023
1 parent bd345ea commit 2be1998
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/KLabel/KLabel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@ $kLabelSpacingX: var(--kui-space-40, $kui-space-40);
}
.label-tooltip {
margin-left: $kLabelSpacingX;
.tooltip-trigger-icon {
cursor: pointer;
/* stylelint-disable-next-line @kong/design-tokens/use-proper-token */
height: var(--kui-icon-size-30, $kui-icon-size-30) !important;
margin-left: $kLabelSpacingX;
/* stylelint-disable-next-line @kong/design-tokens/use-proper-token */
width: var(--kui-icon-size-30, $kui-icon-size-30) !important;
}
Expand Down
4 changes: 3 additions & 1 deletion src/components/KTooltip/KTooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
trigger="hover"
width="auto"
>
<slot />
<div tabindex="0">
<slot />
</div>

<template #content>
<div role="tooltip">
Expand Down

0 comments on commit 2be1998

Please sign in to comment.