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

Custom classNames for oneOf selection component #3788

Open
1 task done
KellyP5 opened this issue Jul 25, 2023 · 1 comment
Open
1 task done

Custom classNames for oneOf selection component #3788

KellyP5 opened this issue Jul 25, 2023 · 1 comment
Labels

Comments

@KellyP5
Copy link

KellyP5 commented Jul 25, 2023

Prerequisites

What theme are you using?

material-ui

What is your question?

When using oneOf, by using the ui:classNames component this classname does not apply to the actual selection input component, rather it applies to the resulting field that is changed. See image below for the RJSF playground example of what I mean.

Screenshot 2023-07-25 at 8 08 05 AM

@KellyP5 KellyP5 added needs triage Initial label given, to be assigned correct labels and assigned question labels Jul 25, 2023
@heath-freenome
Copy link
Member

The ui:classNames is only designed to target the outer field. Theoretically you can use CSS to target the inner select or you could write your own custom field and switch out the OneOfField with it.

@heath-freenome heath-freenome removed the needs triage Initial label given, to be assigned correct labels and assigned label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants