Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const BooleanField: React.FC<FieldProps> = function CheckboxWidget(props) {
required={required}
/>
<Dropdown
aria-required={required}
ariaLabel={label || formatMessage('boolean field')}
id={id}
options={options}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const ObjectItem: React.FC<ObjectItemProps> = ({
onChange,
onNameChange,
onDelete,
required,
...rest
}) => {
const initialName = useMemo(() => originalName, []);
Expand Down Expand Up @@ -76,6 +77,7 @@ const ObjectItem: React.FC<ObjectItemProps> = ({
label={formatMessage('Key')}
name="key"
placeholder={initialName || formatMessage('Add a new key')}
required={required}
schema={{ type: 'string' }}
uiOptions={{}}
value={name}
Expand All @@ -89,6 +91,7 @@ const ObjectItem: React.FC<ObjectItemProps> = ({
label={formatMessage('Value')}
name="value"
placeholder={placeholder}
required={required}
schema={schema}
value={value}
onChange={onChange}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const OpenObjectField: React.FC<FieldProps<{
formData={value}
id={`${id}.value`}
name={propertyName}
required={required}
schema={typeof additionalProperties === 'object' ? additionalProperties : {}}
uiOptions={uiOptions.properties?.additionalProperties || {}}
value={propertyValue}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const SelectField: React.FC<FieldProps<string | number>> = function Selec
<>
<FieldLabel description={description} helpLink={uiOptions?.helpLink} id={id} label={label} required={required} />
<Dropdown
aria-required={required}
ariaLabel={label || formatMessage('selection field')}
data-testid="SelectFieldDropdown"
errorMessage={error as string}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const StringField: React.FC<FieldProps<string>> = function StringField(pr
<>
<FieldLabel description={description} helpLink={uiOptions?.helpLink} id={id} label={label} required={required} />
<TextField
aria-required={required}
ariaLabel={label || formatMessage('string field')}
autoAdjustHeight={!!uiOptions?.multiline}
autoComplete="off"
Expand Down