Browse Source

[sebfox] replace div by fieldset

pull/327/head
SebFox2011 2 years ago
parent
commit
c329310f27
  1. 5
      .vscode/settings.json
  2. 4
      src/components/Form/FormWrapper.tsx

5
.vscode/settings.json

@ -3,5 +3,8 @@
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"quickfix.biome": "explicit" "quickfix.biome": "explicit"
}, },
"editor.formatOnSave": true "editor.formatOnSave": true,
"stm32-for-vscode.openOCDPath": false,
"stm32-for-vscode.makePath": false,
"stm32-for-vscode.armToolchainPath": false
} }

4
src/components/Form/FormWrapper.tsx

@ -17,7 +17,7 @@ export const FieldWrapper = ({
validationText, validationText,
}: FieldWrapperProps): JSX.Element => ( }: FieldWrapperProps): JSX.Element => (
<div className="pt-6 sm:pt-5"> <div className="pt-6 sm:pt-5">
<div role="group" aria-labelledby="label-notifications"> <fieldset aria-labelledby="label-notifications">
<div className="sm:grid sm:grid-cols-3 sm:items-baseline sm:gap-4"> <div className="sm:grid sm:grid-cols-3 sm:items-baseline sm:gap-4">
<Label>{label}</Label> <Label>{label}</Label>
<div className="sm:col-span-2"> <div className="sm:col-span-2">
@ -32,6 +32,6 @@ export const FieldWrapper = ({
</div> </div>
</div> </div>
</div> </div>
</div> </fieldset>
</div> </div>
); );

Loading…
Cancel
Save