Skip to content

[BUG] - Label position is affected by the height of the error message #5796

@dklymenk

Description

@dklymenk

HeroUI Version

2.8.5

Describe the bug

The combination of label's absolute positioning with top-1/2 and the nearest relative parent containing both the form element and the validation message makes it so the position of the label changes based on the number of lines in the error message.

Your Example Website or App

https://heroui.app/NUsmtqN

Steps to Reproduce the Bug or Issue

  1. Go to https://heroui.app/NUsmtqN
  2. Select anything but "Cat" in the select menu
  3. Observe the label shifting on top the select

Expected behavior

The label should stay above the select.

Screenshots or Videos

Image

Operating System Version

macOS

Browser

Firefox

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions