Skip to content

Commit

Permalink
Link components user select
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndai committed Aug 25, 2023
1 parent dd257e3 commit dc398a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/mui-joy/src/Link/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ const LinkRoot = styled('a', {
}),
MozAppearance: 'none', // Reset
WebkitAppearance: 'none', // Reset
'&:active': {
userSelect: 'none',
},
'&::-moz-focus-inner': {
borderStyle: 'none', // Remove Firefox dotted outline.
},
Expand Down
3 changes: 3 additions & 0 deletions packages/mui-material/src/Link/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ const LinkRoot = styled(Typography, {
textDecorationColor: 'inherit',
},
}),
'&:active': {
userSelect: 'none',
},
// Same reset as ButtonBase.root
...(ownerState.component === 'button' && {
position: 'relative',
Expand Down

0 comments on commit dc398a4

Please sign in to comment.