Merge pull request #18264 from desktop/fix-added-space-side-by-side-diff-text-selection

Hidden checkbox inputs should not be text selectable
This commit is contained in:
tidy-dev 2024-03-07 09:36:49 -05:00 committed by GitHub
commit de39fe4b1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,6 +17,10 @@
user-select: text;
}
.sr-only {
user-select: none;
}
// See https://github.com/desktop/desktop/pull/15128#issuecomment-1232689068
&:not(:focus-within) .content,
&.selecting-before .after,
@ -207,6 +211,11 @@
color: white;
padding-top: 3px;
text-align: center;
user-select: none;
* {
user-select: none;
}
.focus-handle {
border-radius: var(--border-radius);
@ -317,6 +326,10 @@
box-sizing: content-box;
position: relative;
input {
user-select: none;
}
label {
width: 100%;
display: flex;