Skip to content

Commit

Permalink
fix: disable hover effect for contained theme
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen committed Jan 20, 2025
1 parent e06edaf commit 27be0de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/button/theme/material/vaadin-button-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const button = css`
background-color: var(--material-secondary-background-color);
}
:host([theme~='contained']:hover) {
:host([theme~='contained']:not([disabled]):hover) {
box-shadow: var(--material-shadow-elevation-4dp);
}
Expand Down Expand Up @@ -149,7 +149,7 @@ const button = css`
transform: translate(50%, -50%) scale(0.0000001);
}
:host(:hover:not([active])[dir='rtl'])::after {
:host(:hover:not([active]):not([disabled])[dir='rtl'])::after {
transform: translate(50%, -50%) scale(1);
}
Expand Down

0 comments on commit 27be0de

Please sign in to comment.