Skip to content

Commit c2a8129

Browse files
committed
fix(material/tooltip): increase specificity of non-interactive styles (#28180)
Fixes that the specificity of the `mat-mdc-tooltip-panel-non-interactive` class was too low which meant that it was easy to override by other structural styles. Fixes #28145. (cherry picked from commit 96fe7b3)
1 parent 86c55d0 commit c2a8129

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/material/tooltip/tooltip.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@use '../core/tokens/m2/mdc/plain-tooltip' as m2-mdc-plain-tooltip;
55

66
@include mdc-custom-properties.configure($emit-fallback-values: false,
7-
$emit-fallback-vars: false) {
7+
$emit-fallback-vars: false) {
88
$mdc-tooltip-token-slots: m2-mdc-plain-tooltip.get-token-slots();
99

1010
// Add the MDC tooltip static styles.
@@ -59,7 +59,8 @@ $emit-fallback-vars: false) {
5959
}
6060
}
6161

62-
.mat-mdc-tooltip-panel-non-interactive {
62+
// We need the additional specificity here, because it can be overridden by `.cdk-overlay-panel`.
63+
.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive {
6364
pointer-events: none;
6465
}
6566

0 commit comments

Comments
 (0)