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

[web] Add simple Fieldset component #333

Merged
merged 1 commit into from
Nov 25, 2022
Merged

Conversation

dgdavid
Copy link
Contributor

@dgdavid dgdavid commented Nov 25, 2022

Problem

In the context of #321, we felt that the PF4/FormFieldGroup was a bit complex for our use case when grouping some form elements in the settings section of the storage page.

Solution

Thus, we've built a wrapper component for providing a simple way to use the native HTML fieldset and legend elements.

Testing

  • Added a new unit test
  • Tested manually

Screenshots

See below image of a fake language settings to get an idea how it could look.

Using an enabled fieldset Using a disabled fieldset
Screenshot from 2022-11-25 11-22-17 Screenshot from 2022-11-25 11-21-13

@coveralls
Copy link

coveralls commented Nov 25, 2022

Coverage Status

Coverage increased (+0.02%) to 74.641% when pulling a33485d on add-fieldset-component into 23e58f5 on master.

Since PF4/FormFieldGroup[1] looks a bit complex for our use cases right now, we
have wrapped the native HTML fieldset/legend elements in a simple Fieldset
component which also tweaks a little bit their default look&feel.

[1] https://www.patternfly.org/v4/components/form/#formfieldgroup)
@dgdavid dgdavid changed the title [web] WIP: basic fieldset component [web] Add simple Fieldset component Nov 25, 2022
@dgdavid dgdavid marked this pull request as ready for review November 25, 2022 11:25
@agama-project agama-project deleted a comment from coveralls Nov 25, 2022
@dgdavid dgdavid merged commit 5a25202 into master Nov 25, 2022
@dgdavid dgdavid deleted the add-fieldset-component branch November 25, 2022 13:40
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.

3 participants