Skip to content

Commit

Permalink
feat(segment): prevent user selection on disabled and loading
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lubber-de committed Nov 13, 2020
1 parent bedd965 commit 05955c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/definitions/elements/segment.less
Expand Up @@ -491,6 +491,8 @@
.ui.disabled.segment {
opacity: @disabledOpacity;
color: @disabledTextColor;
pointer-events: none;
user-select: none;
}
}

Expand All @@ -503,7 +505,7 @@
position: relative;
cursor: default;
pointer-events: none;
text-shadow: none !important;
user-select: none;
transition: all 0s linear;
}
.ui.loading.segment:before {
Expand Down

0 comments on commit 05955c0

Please sign in to comment.