Skip to content

Components without label are missing description padding #2664

Description

@edwinvdpol

Flux version

v2.13.2

Livewire version

v4.2.4

Tailwind version

v4.2.2

Browser and Operating System

Chrome on MacOS

What is the problem?

I noticed that the padding between the description and input field is missing when the label attribute is omitted.
Not sure if it also applies to other components.

The padding is correct when using description:trailing instead of description.

Code snippets to replicate the problem

{{--  Correct padding --}}
<flux:editor description="Editor description" label="label" />
<flux:input description="Input description" label="Label" />

{{--  Incorrect padding --}}
<flux:editor description="Editor description" />
<flux:input description="Input description" />

Screenshots/ screen recordings of the problem

Image

How do you expect it to work?

I would expect the same padding between the description and the input when the label attribute is missing, as when the label attribute is given or description:trailing is used.

Please confirm (incomplete submissions will not be addressed)

  • I have provided easy and step-by-step instructions to reproduce the bug.
  • I have provided code samples as text and NOT images.
  • I understand my bug report will be closed if I haven't met the criteria above.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions