Skip to content

Commit

Permalink
feat: add select-none to components
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Sep 1, 2021
1 parent 860f6b8 commit ec936eb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/react/components/Fab.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const Fab = forwardRef((props, ref) => {
const c = themeClasses(
{
base: {
common: `${colors.bg} ${colors.activeBg} ${colors.text} flex items-center justify-center space-x-2 rounded-full shadow-lg cursor-pointer overflow-hidden`,
common: `${colors.bg} ${colors.activeBg} ${colors.text} flex items-center justify-center space-x-2 rounded-full shadow-lg cursor-pointer overflow-hidden select-none`,
ios: `h-12 duration-100`,
material: `duration-300 touch-ripple-white`,
iconOnly: {
Expand Down
2 changes: 1 addition & 1 deletion src/react/components/ListButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const ListButton = forwardRef((props, ref) => {
common: cls(
positionClass('relative', className),
hairlines && 'hairline-b active:hairline-transparent',
`flex items-center justify-center px-4 space-x-1 active:bg-opacity-15 w-full duration-300 active:duration-0 focus:outline-none ${colors.text} ${colors.activeBg} ${colors.touchRipple} overflow-hidden`
`flex items-center justify-center px-4 space-x-1 active:bg-opacity-15 w-full duration-300 active:duration-0 focus:outline-none ${colors.text} ${colors.activeBg} ${colors.touchRipple} overflow-hidden select-none`
),
ios: 'h-11',
material: 'h-12',
Expand Down
2 changes: 1 addition & 1 deletion src/react/components/ListItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const ListItem = forwardRef((props, ref) => {
divider ? 'relative' : 'sticky top-0',
dark(`dark:bg-list-divider-dark dark:text-white dark:text-opacity-55`)
),
ios: `h-8${hairlines ? ' hairline-t' : ''} -m-0.5`,
ios: `h-8${hairlines ? ' hairline-t' : ''} -mt-px`,
material: 'h-12',
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/react/components/Stepper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const Stepper = forwardRef((props, ref) => {
},
button: {
common:
'relative flex items-center justify-center w-10 cursor-pointer overflow-hidden z-10',
'relative flex items-center justify-center w-10 cursor-pointer overflow-hidden z-10 select-none',
},
buttonLeftShape: {
square: 'rounded-l',
Expand Down

0 comments on commit ec936eb

Please sign in to comment.