Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix <label> tag for messages.automatedEditsCodeUICheckboxLabel #2580

Open
tordans opened this issue Feb 26, 2025 · 0 comments
Open

Fix <label> tag for messages.automatedEditsCodeUICheckboxLabel #2580

tordans opened this issue Feb 26, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@tordans
Copy link
Contributor

tordans commented Feb 26, 2025

On this page, only the checkobx is clickable, not the label.

It would be great if the label where clickable as well…

Image

This is the generated code:

Image

I tracked this down to

<div className="mr-items-center mr-flex mr-space-x-2">
<OriginalCheckboxWidget {...props} label="" />
<p className="mr-text-mango mr-text-sm">
<FormattedMessage {...props.schema.checkboxLabel} />
</p>
</div>
which build a visual label with orange text and leaves the actual <label> blank.

The form field is defined in

The way I read the docs for this UI library https://rjsf-team.github.io/react-jsonschema-form/docs/api-reference/uiSchema/#classnames it should be possible to more the mr-text-mango mr-text-sm classes to the field definition as 'ui:classNames': 'mr-text-mango mr-text-sm' to apply the color overwrite to the actual <label>


I consider this a low prio issue, so feel free to close or move into the "good first issue" lane to be maybe fixed later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant