Skip to content

Commit

Permalink
💄 [cursor] fix checkbox,input,switch cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
higuaifan committed Jul 9, 2023
1 parent fefe4b7 commit 9207b4e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/core/lib/base/checkbox/checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}

.m-checkbox-checkbox {
@extend .m-cursor-pointer;
cursor: var(--m-cursor-pointer);
grid-area: checkbox;
display: inline-block;
height: 24px;
Expand Down
3 changes: 2 additions & 1 deletion packages/core/lib/base/input/input.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
**/

.m-input {
@extend .m-cursor-pointer;

--m-input-w: 244px;
--m-color-disabled: #DBDADD;
Expand Down Expand Up @@ -39,6 +38,7 @@
}

.m-input-inner {
cursor: var(--m-cursor-pointer);
background-color: unset !important;
background-repeat: no-repeat !important;
padding: 0 10px;
Expand All @@ -49,6 +49,7 @@
}

.m-textarea-inner {
cursor: var(--m-cursor-pointer);
padding: 10px;
width: calc(100% - 10px);
height: calc(100% - 20px);
Expand Down
6 changes: 3 additions & 3 deletions packages/core/lib/base/switch/switch.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
transition: all 1s;

.m-switch-core-border {
@extend .m-cursor-pointer;
cursor: var(--m-cursor-pointer);
width: var(--m-switch-core-border-w);
height: var(--m-switch-core-border-h);
background: url(./assets/core.webp) no-repeat;
Expand Down Expand Up @@ -88,7 +88,7 @@

&.m-switch-loading {
.m-switch-core-border {
@extend .m-cursor-disabled;
cursor: var(--m-cursor-disabled);
}

.m-switch-core {
Expand All @@ -98,7 +98,7 @@

&.m-switch-disabled {
.m-switch-core-border {
@extend .m-cursor-disabled;
cursor: var(--m-cursor-disabled);
}

--m-switch-core-bg-disabled: white;
Expand Down

0 comments on commit 9207b4e

Please sign in to comment.