Skip to content

Commit

Permalink
fix: Add id to Checkbox component to proper a11y identification
Browse files Browse the repository at this point in the history
  • Loading branch information
Wagner3UB committed Mar 4, 2025
1 parent 4b2d542 commit 7a929ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const CheckboxWidget = (props) => {
<FormFieldWrapper {...props} columns={1}>
<div className="wrapper">
<Checkbox
id={`field-${id}`}
name={`field-${id}`}
checked={value || false}
disabled={isDisabled}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ exports[`CheckboxWidget renders a checkbox widget component 1`] = `
>
<input
class="hidden"
id="field-my-field"
name="field-my-field"
readonly=""
tabindex="0"
Expand Down Expand Up @@ -65,6 +66,7 @@ exports[`CheckboxWidget renders a checkbox widget component checked 1`] = `
<input
checked=""
class="hidden"
id="field-my-field"
name="field-my-field"
readonly=""
tabindex="0"
Expand Down
4 changes: 2 additions & 2 deletions packages/volto/src/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ let config = {
notSupportedBrowsers: ['ie'],
defaultPageSize: 25,
isMultilingual: false,
supportedLanguages: ['en'],
defaultLanguage: 'en',
supportedLanguages: ['it'],
defaultLanguage: 'it',
navDepth: 1,
expressMiddleware: serverConfig.expressMiddleware, // BBB
defaultBlockType: 'slate',
Expand Down

0 comments on commit 7a929ac

Please sign in to comment.