Skip to content

Commit

Permalink
fix: readonly cursor and text selection
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-chase committed Nov 4, 2022
1 parent 8a8ff02 commit 51acd53
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/styles/scss/components/checkbox/_checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,15 @@
//----------------------------------------------
// Read-only
// ---------------------------------------------
.#{$prefix}--checkbox-wrapper--readonly .#{$prefix}--checkbox-label {
cursor: default;
}

.#{$prefix}--checkbox-wrapper--readonly .#{$prefix}--checkbox-label-text {
cursor: text;
user-select: text;
}

.#{$prefix}--checkbox-wrapper--readonly
.#{$prefix}--checkbox
+ .#{$prefix}--checkbox-label::before {
Expand Down

0 comments on commit 51acd53

Please sign in to comment.