Skip to content

Conversation

silamon
Copy link
Contributor

@silamon silamon commented Oct 8, 2025

Breaking change

Proposed change

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue or discussion:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

@github-actions github-actions bot added the Design Related to Home Assistant design gallery label Oct 8, 2025
@silamon silamon moved this to In Progress in Components (Design System) Oct 8, 2025
@silamon silamon added the needs design preview PRs with this label will trigger a GitHub action to generate a gallery preview label Oct 8, 2025
@silamon silamon mentioned this pull request Oct 8, 2025
9 tasks
Copy link
Member

@timmo001 timmo001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice addition, seems to work well, might need some ha styling on top of the default

@marcinbauer85
Copy link
Member

We need to add shadows. There is already a PR for this: #27320 Please use (md) when this will be available.
The background color of the popup (container) should be --card-background-color

@wendevlin wendevlin self-assigned this Oct 13, 2025
Copy link
Member

@wendevlin wendevlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested it. Looks good 🙂

I also quickly tried to use it in automations and this should also be no big issue, I can to it in a follow up PR.

--wa-color-danger-on-quiet: var(--ha-color-on-danger-quiet);
--wa-color-text-normal: var(--ha-color-text-primary);
--wa-color-surface-default: var(--card-background-color);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
--wa-color-surface-default: var(--card-background-color);
--wa-color-surface-default: var(--ha-color-surface-default);

--wa-color-text-normal: var(--ha-color-text-primary);
--wa-color-surface-default: var(--card-background-color);
--wa-color-surface-raised: var(--ha-dialog-surface-background, var(--mdc-theme-surface, #fff));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use a semantic color here, but I am not sure which one. Where is this color used?
@marcinbauer85 can you help out here please?

import { css, type CSSResultGroup } from "lit";
import { customElement, property } from "lit/decorators";

@customElement("ha-dropdown")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add js docs with reference to WA

import { css, type CSSResultGroup } from "lit";
import { customElement } from "lit/decorators";

@customElement("ha-dropdown-item")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add js docs with reference to WA

title: Dropdown
---

# Dropdown `<ha-dropdown>`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add more docs please. When to use it and reference to WA docs

@home-assistant
Copy link

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@home-assistant home-assistant bot marked this pull request as draft October 13, 2025 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed Design Related to Home Assistant design gallery hacktoberfest needs design preview PRs with this label will trigger a GitHub action to generate a gallery preview

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

4 participants