Skip to content

Commit b8c3ab8

Browse files
authored
Merge pull request #441 from material-components/fix/card-hover-var
Update card elevation shadow
2 parents 3684aa5 + 9e53c61 commit b8c3ab8

File tree

1 file changed

+2
-2
lines changed
  • plugin/assets/css/src/components

1 file changed

+2
-2
lines changed

plugin/assets/css/src/components/card.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@
170170
}
171171

172172
.mdc-card--elevated {
173-
background: linear-gradient(0deg, rgba(var(--md-sys-color-surface-rgb), 0.05), rgba(var(--md-sys-color-surface-rgb), 0.05)), var(--md-sys-color-surface);
174-
box-shadow: 0 1px 2px rgba(var(--md-sys-color-shadow-rgb, 0, 0, 0), 0.3), 0 2px 6px 2px rgba(var(--md-sys-color-shadow-rgb, 0, 0, 0), 0.15);
173+
background: var(--md-sys-color-surface);
174+
box-shadow: var(--md-sys-elevation-1);
175175
}
176176

177177
.mdc-card--filled {

0 commit comments

Comments
 (0)