pimcore-formbuilder icon indicating copy to clipboard operation
pimcore-formbuilder copied to clipboard

[FEATURE] "Floating Labels" option

Open pascalmoser opened this issue 3 years ago • 0 comments

Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? yes

Floating labels in forms are gaining popularity. There are some ways to do this without JS. For a CSS only solution some rules are necessary:

  • The Label should be after the Input Field
  • The input field should have a placeholder attribute
  • Makes only sense with the following fields: Text, Number, Textarea, Select? (Bootstrap 5)

CSS Solutions

Implemented Conditions

Symfony Docs for the Bootstrap 5 Way

Do we need to provide other options like in the Symfony Bootstrap 5 Form Theme documentation (input-group, checkbox-switch, checkbox-inline)?

pascalmoser avatar Feb 18 '22 08:02 pascalmoser