diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/mui/input/FormLabel.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/mui/input/FormLabel.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-webextension/src/mui/input/FormLabel.tsx b/packages/taler-wallet-webextension/src/mui/input/FormLabel.tsx index 1d4b5eff5..11404b5c1 100644 --- a/packages/taler-wallet-webextension/src/mui/input/FormLabel.tsx +++ b/packages/taler-wallet-webextension/src/mui/input/FormLabel.tsx @@ -22,7 +22,7 @@ import { useFormControl } from "./FormControl.js"; export interface Props { class?: string; disabled?: boolean; - error?: boolean; + error?: string; filled?: boolean; focused?: boolean; required?: boolean; @@ -67,9 +67,9 @@ export function FormLabel({ }); return ( <label - data-focused={fcs.focused} + data-focused={!fcs.focused ? undefined : true} data-error={!fcs.error ? undefined : true} - data-disabled={fcs.disabled} + data-disabled={!fcs.disabled ? undefined : true} class={[_class, root, theme.typography.body1].join(" ")} {...rest} style={{ |