GeorgeSG / lovelace-time-picker-card

🕰️ Time Picker Card for Home Assistant's Lovelace UI
MIT License
209 stars 14 forks source link

Background color not displaying correctly #51

Closed dave0111 closed 1 week ago

dave0111 commented 1 year ago

Checklist:

The problem

When selecting Embedded from layout menu, card blends in with HA background; TPC doesn't pick up correct card background color.

Environment

TPC v: 1.4.0 HA OS: 10.3 HA Core: 2023.6.3

Problem-relevant configuration

type: custom:time-picker-card
entity: input_datetime.next_sunset
hour_mode: 24
hour_step: 1
minute_step: 5
layout:
  hour_mode: double
  align_controls: right
  name: header
  embedded: true
hide:
  seconds: true

Javascript errors shown in the web inspector (if applicable):

GeorgeSG commented 1 week ago

The embedded option should be used when time picker card is embedded within another card, not used directly in the dashboard. The purpose of the embedded option is exactly this - to remove the background and inherit it from the parent.