Fix checkboxes

This commit is contained in:
DaneEveritt 2022-07-02 18:27:29 -04:00
parent e49e6ee802
commit 870a964050
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 10 additions and 3 deletions

View File

@ -2,6 +2,13 @@ import React, { forwardRef } from 'react';
import classNames from 'classnames';
import styles from './styles.module.css';
export default forwardRef<HTMLInputElement, React.ComponentProps<'input'>>(({ className, ...props }, ref) => (
<input ref={ref} className={classNames('form-input', styles.text_input, className)} {...props} />
type Props = Omit<React.ComponentProps<'input'>, 'type'>;
export default forwardRef<HTMLInputElement, Props>(({ className, ...props }, ref) => (
<input
ref={ref}
type={'checkbox'}
className={classNames('form-input', styles.checkbox_input, className)}
{...props}
/>
));

View File

@ -1,4 +1,4 @@
.checkbox {
.checkbox_input {
@apply w-4 h-4 rounded-sm border-neutral-500 bg-neutral-600 text-primary-500;
&:focus, &:active {