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

Button appearance for checkboxes and radio buttons #6493

Open
avernet opened this issue Sep 14, 2024 · 0 comments
Open

Button appearance for checkboxes and radio buttons #6493

avernet opened this issue Sep 14, 2024 · 0 comments

Comments

@avernet
Copy link
Collaborator

avernet commented Sep 14, 2024

The idea is to provide button-like styling for radio buttons and checkboxes. Bootstrap has offered this feature since version 2.3.2, though it suffers from poor color contrast. We may prefer to create our own custom CSS rather than using Bootstrap's, allowing us to maintain our current markup structure unchanged.

We might not need a separate value for the appearance attribute (so the XForms layer wouldn't be aware of this). Instead, we could use a class, such as class="fr-button", added in addition to the appearance="full". How can we select this in Form Builder for a specific control, for all controls on the page, or through a property?

https://getbootstrap.com/2.3.2/javascript.html#buttons
https://getbootstrap.com/docs/4.0/components/buttons/#checkbox-and-radio-buttons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant