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

feat: add Form Fieldset UI component #21

Merged
merged 26 commits into from
Apr 24, 2024
Merged

feat: add Form Fieldset UI component #21

merged 26 commits into from
Apr 24, 2024

Conversation

rasokolovska
Copy link
Contributor

@rasokolovska rasokolovska commented Mar 12, 2024

Description

Form Fieldset serves as a container for grouping related form controls, providing a gray frame with a heading to structure and organize form elements. Legend element, identified by the form-fieldset__legend class, specifies the purpose of the grouped elements.

Task Link

Figma Layout

Usage

Base class for the block is form-fieldset. Along with the mandatory base class, it requires the corresponding modifier:

  • form-fieldset_for_personal-info
  • form-fieldset_for_app-type
  • form-fieldset_for_contact-info
  • form-fieldset_for_achievements
  • form-fieldset_for_impressions

The correct settings for the legend element demand the base class form-fieldset__legend paired with the corresponding modifier:

  • form-fieldset__legend_for_app-type
  • form-fieldset__legend_for_contact-info
  • form-fieldset__legend_for_achievements
  • form-fieldset__legend_for_impressions

Example of Usage

<fieldset class="form-fieldset form-fieldset_for_achievements">
  <legend  class="form-fieldset__legend form-fieldset__legend_for_achievements">Ваши безбашенные достижения в путешествии</legend>
  <!-- form controls go here -->
</fieldset>

Checklist

Before submitting this pull request, please ensure the following:

  • I've validated my HTML with Nu Html Checker, and it outputs no errors
  • I've checked my HTML with HTML Tree Generator, and it outputs no errors
  • I've ensured that the layout matches the mockup for the following control points:
    • 1200px
    • 660px
    • 320px

@naumch1k naumch1k marked this pull request as draft March 26, 2024 15:15
Copy link
Member

@naumch1k naumch1k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @rasokolovska! 👋 Before we review your changes, could you resolve conflicts in the files mentioned below?

components.html
index.html
pages/components.css

@rasokolovska
Copy link
Contributor Author

@naumch1k So I have a question, is the solution to this problem to pull the update from the main branch?

@naumch1k naumch1k force-pushed the feature-fieldset branch 2 times, most recently from 0dae6e6 to afe1424 Compare April 24, 2024 01:17
@naumch1k naumch1k changed the title Feature fieldset feat: add Form Fieldset UI component Apr 24, 2024
@naumch1k naumch1k marked this pull request as ready for review April 24, 2024 04:26
@naumch1k naumch1k merged commit 0caba6a into main Apr 24, 2024
@naumch1k naumch1k deleted the feature-fieldset branch April 24, 2024 04:27
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