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

Allow theme to be set only once #123

Merged
merged 1 commit into from
Feb 28, 2024
Merged

Allow theme to be set only once #123

merged 1 commit into from
Feb 28, 2024

Conversation

maaslalani
Copy link
Member

This PR makes it so that themes can be applied on individual inputs, groups, or forms.

How it works is that it simply sets the theme only if it is not already set.
This means the theme that was set first will take precendence and not be
overridden as how it currently is being overridden.

That means, if a user creates a field.WithTheme that will be the permanent
theme of the field, if the user creates a group.WithTheme that will be the
theme of each field in the group (unless it already has a theme applied by the
field individually), and so on...

@maaslalani maaslalani merged commit b6644a1 into main Feb 28, 2024
40 checks passed
@maaslalani maaslalani deleted the theme-once branch February 28, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant