Skip to content

Commit 47b6b64

Browse files
author
Sravan S
authored
fix: Desktop - allow text select on Labels (#625)
On Desktop, text select got disabled on messages to cleanup long presses. We scope down the CSS rule for mobile only Fixes: https://sendbird.atlassian.net/browse/UIKIT-4112 Thanks: @jawakarD
1 parent 4b62d43 commit 47b6b64

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

src/ui/Label/index.scss

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
@import '../../styles/variables';
22

33
.sendbird-label {
4-
-webkit-user-select: none;
5-
-webkit-touch-callout: none;
4+
@include mobile() {
5+
-webkit-user-select: none;
6+
-webkit-touch-callout: none;
7+
}
68
}
79

810
[class*=sendbird-label] {
@@ -46,12 +48,12 @@
4648
}
4749

4850
.sendbird-label--body-1 {
49-
font-size: 14px;
50-
font-weight: normal;
51-
font-stretch: normal;
52-
font-style: normal;
53-
line-height: 1.43;
54-
letter-spacing: normal;
51+
font-size: 14px;
52+
font-weight: normal;
53+
font-stretch: normal;
54+
font-style: normal;
55+
line-height: 1.43;
56+
letter-spacing: normal;
5557
}
5658

5759
.sendbird-label--body-2 {
@@ -82,20 +84,20 @@
8284
}
8385

8486
.sendbird-label--caption-1 {
85-
font-size: 14px;
86-
font-weight: 600;
87-
font-stretch: normal;
88-
font-style: normal;
89-
line-height: 1.43;
90-
letter-spacing: normal;
87+
font-size: 14px;
88+
font-weight: 600;
89+
font-stretch: normal;
90+
font-style: normal;
91+
line-height: 1.43;
92+
letter-spacing: normal;
9193
}
9294

9395
.sendbird-label--caption-2 {
94-
font-size: 12px;
95-
font-weight: bold;
96-
font-style: normal;
97-
line-height: 1;
98-
letter-spacing: normal;
96+
font-size: 12px;
97+
font-weight: bold;
98+
font-style: normal;
99+
line-height: 1;
100+
letter-spacing: normal;
99101
}
100102

101103
.sendbird-label--caption-3 {

0 commit comments

Comments
 (0)