Skip to content

Commit b92c1a3

Browse files
committed
Don't persist focus after clicking on CmkTab
The green border will only show when navigating with the keyboard, not when clicking with the mouse. Change-Id: Ia9773358ee53d2a9dbae951d33edfd8488b2c9a8
1 parent ab4c6e6 commit b92c1a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/cmk-frontend-vue/src/components/CmkTabs

packages/cmk-frontend-vue/src/components/CmkTabs/CmkTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ defineProps<CmkTabProps>()
4545
background: var(--ux-theme-2);
4646
}
4747
48-
&:focus {
48+
&:focus-visible {
4949
outline: none;
5050
border: 1px solid var(--success);
5151
}

0 commit comments

Comments
 (0)