primefaces / primefaces/primereact

FloatLabel: Incorrect DOM element order (label comes after input)

Open
#8,278 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Status: Needs Triage
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

The DOM element order in FloatLabel is incorrect. The element comes after the instead of before it.
This affects accessibility and is inconsistent with expected HTML semantics.

This issue can be observed directly in the official documentation:
https://primereact.org/floatlabel/

Reproducer

No response

System Information
primereact: 10.9.7
Steps to reproduce the behavior

Go to https://primereact.org/floatlabel/

Inspect any FloatLabel example

Observe that appears before in DOM

Expected behavior

The should appear before the to follow proper semantics and accessibility standards.

Contributor guide

Open the contributing guide

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.

Research direction

Start at the FloatLabel examples on https://primereact.org/floatlabel/ and inspect the rendered DOM to confirm the current order. Trace the FloatLabel component entry point and adjust the output so the label precedes the input, then verify the documentation examples show the expected accessible order.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
accessibility, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.