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

How to use formie.php themeConfig for subfield #2291

Open
chrisrowe opened this issue Feb 14, 2025 · 3 comments
Open

How to use formie.php themeConfig for subfield #2291

chrisrowe opened this issue Feb 14, 2025 · 3 comments
Labels

Comments

@chrisrowe
Copy link
Contributor

chrisrowe commented Feb 14, 2025

Question

Using the native verbb\formie\fields\Name and verbb\formie\fields\Address fields, how would I go about styling these independantly in the themeConfig object of formie.php.

It seems that singleLineText isn't even being used on the subfields as I would expect.

Additional context

No response

@engram-design
Copy link
Member

Looks like these are missing from the docs, but the lack of inheritance is probably more the issue. You can use something like nameFirst as the Theme Config key to target that field, but we better handle this properly by using what's defined in singleLineText

@chrisrowe
Copy link
Contributor Author

chrisrowe commented Feb 18, 2025

Thanks Josh, nameFirst etc works great for now, thought I'd tried that.

@engram-design
Copy link
Member

I'll be sure to add those to the docs, for now they are camelCase versions of classes.

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