@yuuvis/material 3.8.0 → 3.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
@use './../token/token.tools' as t;
|
|
3
3
|
|
|
4
|
+
// Material renders the focus state layer (the grey circle) for BOTH keyboard focus
|
|
5
|
+
// (.cdk-keyboard-focused) and programmatic focus (.cdk-program-focused). Programmatic focus
|
|
6
|
+
// happens when an overlay — a MatMenu or MatDialog — restores focus to its trigger after a
|
|
7
|
+
// mouse-driven close (e.g. closing a dialog opened from the kebab actions menu). That leaves
|
|
8
|
+
// the icon button looking focused even though the user never reached it via keyboard.
|
|
9
|
+
//
|
|
10
|
+
// Align the focus state layer with :focus-visible semantics: only show it for keyboard focus.
|
|
11
|
+
// The :not(:hover) guard keeps the hover/active state layers working while the button still
|
|
12
|
+
// holds programmatic focus. Higher specificity than Material's own rule, so no !important.
|
|
13
|
+
.mat-mdc-icon-button.cdk-program-focused:not(.cdk-keyboard-focused):not(:hover) > .mat-mdc-button-persistent-ripple::before {
|
|
14
|
+
opacity: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
4
17
|
// extra-small
|
|
5
18
|
.ymt-icon-button--size-xs.mat-mdc-icon-button {
|
|
6
19
|
@include mat.icon-button-overrides(
|