primefaces / primefaces/primereact
FloatLabel: Incorrect DOM element order (label comes after input)
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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