Skip to content

Commit

Permalink
fix(ui5-checkbox): prevent text selection on checkbox (#7364)
Browse files Browse the repository at this point in the history
The fix ensures that the checkbox works as expected without causing
unintended text selection in other elements during user interactions.

Fixes: #7236
  • Loading branch information
kgogov authored Jul 25, 2023
1 parent e64436c commit d6aeb0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/main/src/themes/CheckBox.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
border-radius: var(--_ui5_checkbox_border_radius);
transition: var(--_ui5_checkbox_transition);
cursor: pointer;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}

/* disabled */
Expand Down Expand Up @@ -235,8 +239,6 @@
text-overflow: ellipsis;
overflow: hidden;
pointer-events: none;
user-select: none;
-webkit-user-select: none;
color: var(--_ui5_checkbox_label_color);
}

Expand Down

0 comments on commit d6aeb0f

Please sign in to comment.