Skip to content

Commit

Permalink
fix: apply user-select to widget, not to constituents (#3345)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzmp authored Feb 23, 2022
1 parent 8ac3b83 commit 0d852b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/Widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 0d852b6

Please sign in to comment.