p-foundation / pink-app

The repository is created for learning adaptive web design and team collaboration through git and GitHub
https://p-foundation.github.io/pink-app/
0 stars 0 forks source link

feat: add Form Fieldset UI component #21

Closed rasokolovska closed 5 months ago

rasokolovska commented 7 months ago

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:

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

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:

rasokolovska commented 5 months ago

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