mirror of
https://github.com/material-components/material-web.git
synced 2026-01-09 07:21:09 +08:00
fix(switch): cursor should be pointer except when disabled
fixes #5075 PiperOrigin-RevId: 574526749
This commit is contained in:
parent
5280c6ec27
commit
9a3ff289f5
@ -89,6 +89,11 @@
|
||||
outline: none;
|
||||
vertical-align: top;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
:host([disabled]) {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
:host([touch-target='wrapper']) {
|
||||
@ -130,6 +135,7 @@
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
cursor: inherit;
|
||||
}
|
||||
|
||||
:host([touch-target='none']) input {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user