diff --git a/src/elements/Label.tsx b/src/elements/Label.tsx index 8eac78f53..5d6949440 100644 --- a/src/elements/Label.tsx +++ b/src/elements/Label.tsx @@ -4,10 +4,10 @@ import styled from 'styled-components' import type { LabelHTMLAttributes } from 'react' export type LabelProps = LabelHTMLAttributes & { - $isHidden?: boolean | undefined $isRequired?: boolean | undefined disabled?: boolean | undefined hasError?: boolean | undefined + isHidden?: boolean | undefined } export const Label = styled.label.attrs(props => ({ className: classnames('Element-Label', props.className) @@ -26,13 +26,13 @@ export const Label = styled.label.attrs(props => ({ color: ${p.theme.color.maximumRed}; }`} ${p => - p.$isHidden && + p.isHidden && ` - position:absolute; - left:-10000px; - top:auto; - width:1px; - height:1px; - overflow:hidden; + position:absolute; + left:-10000px; + top:auto; + width:1px; + height:1px; + overflow:hidden; `} ` diff --git a/src/fields/CheckPicker.tsx b/src/fields/CheckPicker.tsx index d6b2e1187..3f3f657df 100644 --- a/src/fields/CheckPicker.tsx +++ b/src/fields/CheckPicker.tsx @@ -127,7 +127,7 @@ export function CheckPicker({ return ( -