From 870a964050b40dea4a1123560519fcf476a0ad49 Mon Sep 17 00:00:00 2001 From: DaneEveritt Date: Sat, 2 Jul 2022 18:27:29 -0400 Subject: [PATCH] Fix checkboxes --- .../scripts/components/elements/inputs/Checkbox.tsx | 11 +++++++++-- .../components/elements/inputs/styles.module.css | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/resources/scripts/components/elements/inputs/Checkbox.tsx b/resources/scripts/components/elements/inputs/Checkbox.tsx index 19015c0ab..82233b15f 100644 --- a/resources/scripts/components/elements/inputs/Checkbox.tsx +++ b/resources/scripts/components/elements/inputs/Checkbox.tsx @@ -2,6 +2,13 @@ import React, { forwardRef } from 'react'; import classNames from 'classnames'; import styles from './styles.module.css'; -export default forwardRef>(({ className, ...props }, ref) => ( - +type Props = Omit, 'type'>; + +export default forwardRef(({ className, ...props }, ref) => ( + )); diff --git a/resources/scripts/components/elements/inputs/styles.module.css b/resources/scripts/components/elements/inputs/styles.module.css index a58454925..3b2e521c8 100644 --- a/resources/scripts/components/elements/inputs/styles.module.css +++ b/resources/scripts/components/elements/inputs/styles.module.css @@ -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 {