1 // When adding new opacity classes, add the values also in Storybook
2 // applications/storybook/src/stories/cssUtilities/Opacity.stories.tsx
37 // Make hover-only interaction focusable with keyboard
38 // deprecated: opacity-on-hover
39 $container-name: 'group-hover-opacity-container';
41 .group-hover\:opacity-100 {
42 &:not([aria-expanded='true'], .is-active) {
43 opacity: 0; // Do not use visibility to keep it focusable even when invisible
46 // Need a container to manage with focus-within
48 .#{$container-name}:focus-within &,
49 .#{$container-name}:focus-within .mouse\:group-hover\:opacity-100 {
54 @include media('mouse') {
55 .#{$container-name}:not(:hover, :focus, :focus-within) &-no-width:not([aria-expanded='true'], .is-active) {
63 .#{$container-name}:hover &,
64 .#{$container-name}:hover .mouse\:group-hover\:opacity-100 {
72 .mouse\:group-hover\:opacity-100 {