Skip to content

Commit

Permalink
feat(Field): imporve readonly cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Jan 16, 2020
1 parent 959eca1 commit 60173dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/field/index.less
Expand Up @@ -43,6 +43,10 @@
opacity: 1;
}

&:read-only {
cursor: default;
}

&--center {
text-align: center;
}
Expand Down
4 changes: 4 additions & 0 deletions src/stepper/index.less
Expand Up @@ -89,6 +89,10 @@
-webkit-text-fill-color: @stepper-input-disabled-text-color; // fix disabled color in iOS
opacity: 1;
}

&:read-only {
cursor: default;
}
}

input[type="number"]::-webkit-inner-spin-button,
Expand Down

0 comments on commit 60173dd

Please sign in to comment.