Skip to content

[Bug]: outline-dropdown has hard-coded colors #349

@mike-potter

Description

@mike-potter

Describe the bug

The outline-dropdown component doesn't define its own color cssvars and instead is using gray and black colors:

  border-color: var(--outline-gray-400);
  background-color: var(--outline-gray-200);
  color: var(--outline-black);

Expected behavior
Sites using outline-dropdown should be able to set their own cssvars for these colors without overriding the gray and black base colors.

Ran into this when using outline-dropdown for the main menu items.

Actually, there might need to be variants to handle different color schemes. I could see outline-dropdown being used for a simple Select list of items, which is different than using it for the menu dropdown elements. Probably can't have a single color variable for both situations. So similar to buttons, might need to have variants like menu or select dropdowns?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Requires TriageA ticket that requires verification before being worked.Type: Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions