Skip to content

Commit

Permalink
fix(material/stepper): remove ripple and hover styling for disabled s…
Browse files Browse the repository at this point in the history
…tep (#23386)

(cherry picked from commit b5b262d)
  • Loading branch information
amysorto committed Aug 24, 2021
1 parent e725863 commit 8103d9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/material/stepper/_stepper-theme.scss
Expand Up @@ -17,10 +17,15 @@
.mat-step-header {
&.cdk-keyboard-focused,
&.cdk-program-focused,
&:hover {
&:hover:not([aria-disabled]),
&:hover[aria-disabled='false'] {
background-color: theming.get-color-from-palette($background, hover);
}

&:hover[aria-disabled='true'] {
cursor: default;
}

// On touch devices the :hover state will linger on the element after a tap.
// Reset it via `@media` after the declaration, because the media query isn't
// supported by all browsers yet.
Expand Down
2 changes: 1 addition & 1 deletion src/material/stepper/stepper.html
Expand Up @@ -70,6 +70,6 @@
[optional]="step.optional"
[errorMessage]="step.errorMessage"
[iconOverrides]="_iconOverrides"
[disableRipple]="disableRipple"
[disableRipple]="disableRipple || !_stepIsNavigable(i, step)"
[color]="step.color || color"></mat-step-header>
</ng-template>

0 comments on commit 8103d9b

Please sign in to comment.