fix: apply user-select to widget, not to constituents (#3345)

This commit is contained in:
Zach Pomerantz 2022-02-23 12:49:59 -08:00 committed by GitHub
parent 8ac3b836bd
commit 0d852b6165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,12 +35,12 @@ const WidgetWrapper = styled.div<{ width?: number | string }>`
min-width: 300px;
padding: 0.25em;
position: relative;
user-select: none;
width: ${({ width }) => width && (isNaN(Number(width)) ? width : `${width}px`)};
* {
box-sizing: border-box;
font-family: ${({ theme }) => theme.fontFamily};
user-select: none;
@supports (font-variation-settings: normal) {
font-family: ${({ theme }) => theme.fontFamilyVariable};