Skip to content

[Catalyst] Dropdown icons do not behave with disabled items #1706

@haltsir

Description

@haltsir

What component (if applicable)

Describe the bug
When using a disabled item with an icon item, the icon item creates a gap with the length of the disabled item between the icon and its label.

To Reproduce
Steps to reproduce the behavior:

                <Dropdown>
                    <DropdownButton outline>
                        Options
                        <ChevronDownIcon data-slot="icon"/>
                    </DropdownButton>
                    <DropdownMenu anchor="bottom-end">
                        <DropdownItem href="#">
                            <User data-slot="icon" />
                            <DropdownLabel>Account</DropdownLabel>
                        </DropdownItem>
                        <DropdownItem disabled>
                            Slightly longer text
                        </DropdownItem>
                    </DropdownMenu>
                </Dropdown>

Expected behavior
I expect that the item with an icon is sized independently of other items such as a disabled item.

Screenshots

Image

Browser/Device (if applicable)

  • OS: macOS
  • Browser: Firefox
  • Version: 139.0.4

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions