Support floating labels with form adornments

Open
#43,318 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
css, html, javascript, scss

Research direction

Start by reading the floating label and form adornment documentation and implementation, then check related issue #37935 for context. Determine how the recommended markup can keep the label associated with the input while leaving the adornment outside its accessible name. Done when labels float correctly, interactive adornments work with mouse and keyboard, and the docs include an example.

Written by the indexing model from the issue text.

Description

css docs feature v6

Let's make floating labels work with form adornments in Bootstrap 6. A field should be able to use a floating label alongside an icon or a separate control, like a button that opens a help tooltip.

Keep the label associated with the actual input and the adornment separate from the label so it doesn't become part of the field's accessible name. Check that the label still floats correctly and that interactive adornments work with both mouse and keyboard. Add a docs example showing the recommended markup.

Related to #37935. This is for v6 only.

Dominant language
MDX
Stars
175k
Forks
78.7k
Avg merge
1d 7h
Merged PRs (30d)
103

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from twbs/bootstrap

All issues in twbs/bootstrap

Similar issues

More Accessibility issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.