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

create FieldsetBase component #2136

Merged
merged 3 commits into from
Jul 10, 2024
Merged

create FieldsetBase component #2136

merged 3 commits into from
Jul 10, 2024

Conversation

mayank99
Copy link
Contributor

@mayank99 mayank99 commented Jul 9, 2024

Changes

  1. Added a new base class that only resets default <fieldset> styles.
  2. Created a private FieldsetBase component that uses this new class.
  3. Updated Fieldset component to use this new component as a base.

The FieldsetBase component will be useful in other places (e.g. #2135) where we should use <fieldset> but feel limited by its default styles. In the future, we could potentially even expose this as a public component with some docs and improvements.

Testing

N/A. This is just moving things around so everything works the same.

Docs

Added CSS changeset since the new class is part of the public API and requires a breaking change.

Added light jsdocs. No React changeset needed, as this shouldn't affect anyone.

@mayank99 mayank99 self-assigned this Jul 9, 2024
@mayank99 mayank99 marked this pull request as ready for review July 9, 2024 16:05
@mayank99 mayank99 requested review from a team as code owners July 9, 2024 16:05
@mayank99 mayank99 requested review from r100-stack and Ben-Pusey-Bentley and removed request for a team July 9, 2024 16:05
@mayank99 mayank99 merged commit 704e57e into main Jul 10, 2024
16 checks passed
@mayank99 mayank99 deleted the mayank/fieldset-base branch July 10, 2024 00:12
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