Skip to content

Commit

Permalink
#6676 - fixed selection in readonly and preview mode
Browse files Browse the repository at this point in the history
  • Loading branch information
novikov82 committed Apr 3, 2024
1 parent 1a5a4b8 commit f134285
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
5 changes: 3 additions & 2 deletions src/common-styles/sv-ranking.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@

.sv-ranking-item--disabled.sv-ranking-item--disabled,
.sv-ranking-item--readonly.sv-ranking-item--readonly,
.sv-ranking-item--preview,
.sv-ranking-item--preview {
.sv-ranking-item--preview.sv-ranking-item--preview {
cursor: initial;
user-select: initial;
-webkit-user-select: initial;

.sv-ranking-item__icon-container.sv-ranking-item__icon-container {
.sv-ranking-item__icon.sv-ranking-item__icon {
Expand Down
8 changes: 0 additions & 8 deletions src/defaultV2-theme/blocks/sd-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,9 @@ textarea {

.sd-input--readonly {
background-color: $background-dark;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

.sd-input.sd-input--preview {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background: none;
box-shadow: none;
transition: none;
Expand Down
4 changes: 4 additions & 0 deletions src/defaultV2-theme/blocks/sd-ranking.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
.sd-element--with-frame .sv-ranking-item {
left: calcSize(-3);
}
.sv-ranking.sd-ranking--readonly {
user-select: initial;
-webkit-user-select: initial;
}

@container (max-width: #{$sd-panel-normal-min-width}) {
.sv-ranking--select-to-rank-horizontal {
Expand Down

0 comments on commit f134285

Please sign in to comment.