Skip to content

Commit e3a13f1

Browse files
authored
Merge pull request #541 from luap42/patch-1
Fix user-select inconsistency with buttons and links
2 parents b54c735 + 7972109 commit e3a13f1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/css/components/_stacks-buttons.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
text-align: center;
3434
text-decoration: none;
3535
cursor: pointer;
36+
user-select: none;
3637

3738
// Override for buttons having inline-block by default
3839
&.grid {
@@ -539,6 +540,7 @@
539540
background: none;
540541
box-shadow: none;
541542
cursor: default;
543+
user-select: auto;
542544
}
543545

544546
.s-btn__unset:focus {
@@ -641,4 +643,4 @@
641643
}
642644
}
643645
}
644-
}
646+
}

lib/css/components/_stacks-links.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ a,
2020
text-decoration: none;
2121
color: @link-color;
2222
cursor: pointer;
23+
user-select: auto;
2324

2425
&.s-link__visited:visited {
2526
color: @link-color-visited;
@@ -101,6 +102,7 @@ button.s-link {
101102
border: 0;
102103
padding: 0;
103104
line-height: inherit;
105+
user-select: auto;
104106

105107
&:focus {
106108
outline: none;
@@ -162,4 +164,4 @@ button.s-link {
162164
border-left: 3px solid @block-link-highlight;
163165
}
164166
}
165-
}
167+
}

0 commit comments

Comments
 (0)