Skip to content

Commit 05955c0

Browse files
authored
feat(segment): prevent user selection on disabled and loading
In disabled or loading segments, selection of text via mouse or even clicking on links was still possible I also removed the unnecessary text-shadow setting
1 parent bedd965 commit 05955c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/definitions/elements/segment.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,8 @@
491491
.ui.disabled.segment {
492492
opacity: @disabledOpacity;
493493
color: @disabledTextColor;
494+
pointer-events: none;
495+
user-select: none;
494496
}
495497
}
496498

@@ -503,7 +505,7 @@
503505
position: relative;
504506
cursor: default;
505507
pointer-events: none;
506-
text-shadow: none !important;
508+
user-select: none;
507509
transition: all 0s linear;
508510
}
509511
.ui.loading.segment:before {

0 commit comments

Comments
 (0)