Create smaller variations for form elements

Created on 24 September 2019, about 5 years ago
Updated 5 January 2024, 12 months ago

Problem/Motivation

Several places in Claro use the regular size for input fields and take a lot of vertical space.

Proposed resolution

As we have for buttons, we need smaller and more compact input and selects for smaller forms like the content page filter or the people page filter.
The issue was going to implement 3 sizes: normal, small and extra small. But after evolving its implementation we found out we were introducing too much complexity 📌 Create smaller variations for form elements Needs work so we decided to use only normal and small variations on the UI, and leave the extrasmall for really specific situations like Views UI.

Input full specs: https://www.figma.com/file/OqWgzAluHtsOd5uwm1lubFeH/Drupal-Design-system...
Select full specs: https://www.figma.com/file/OqWgzAluHtsOd5uwm1lubFeH/Drupal-Design-system...

Remaining tasks

  • s
  • Implement it on views filters, views bulk actions, and block layout. Block layout won't have any visible differences, but refactor so the form itself is styled as extrasmall instead of each element being targeted with the styling.

User interface changes

Some forms will occupy lest space.

Testing instructions

Wrapper class:
Filters and bulk operations for the following lists:
- /admin/content (wrapper .claro-form-elements-small) (to test Bulk Operations at least 1 node needs to be added)
- /admin/people (wrapper .claro-form-elements-small)
- /admin/structure/block (wrapper .claro-form-elements-small) > applied to the selects

Direct class in form element:

- Select (.form-element--type-select.form-element--small):
/node/add/page Text format selector under the Body text area.

- Field (.form-element--small)
/node/add/page > manually add the class .form-element--small to the Title field input element (.form-element--type-text).

None for now.

📌 Task
Status

Needs work

Version

11.0 🔥

Component
Claro 

Last updated about 5 hours ago

Created by

🇪🇸Spain ckrina Barcelona

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024