question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to change `energy-date-selection`?

See original GitHub issue

I’m trying to add some styles to an energy-dete-selection card, but it seems like the styles aren’t being applied. I tried messing with the selector, shadow roots, etc., but I can’t get it to work.

My card looks like this:

- type: custom:mod-card
  card:
    type: energy-date-selection
  card_mod:
    style:
      hui-energy-date-selection-card $:
        hui-energy-period-selector $: |
          .row {
            flex-direction: row !important;
          }

What should the selector look like for this card? It looks like this in the DOM:

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ildar170975commented, Aug 22, 2022

This is neither a bug nor a FR. It’s a question. Please ask similar questions in a dedicated card-mod community thread. Leave GitHub for bugs & FRs only.

0reactions
thomaslovencommented, Nov 23, 2022

This is now explained better in the readme.

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to place energy-date-selection card in header? - Frontend
I created a custom energy dashboard with more detailed information. I would like to replicate the energy- date-selection card in the header (as ......
Read more >
energy-date-selection card comparison does not work when ...
Describe the behavior you expected. The compare button should change other energy cards to show the comparisons, same as the real energy ......
Read more >
Home Assistant: Energy dashboard | Custom build begins!
Building my own custom energy dashboard in Home Assistant. Here are some quick tips on how you can use the standard energy dashboard...
Read more >
Change Date Format in Datepicker - Power Platform Community
Hi all, I am trying to format the date in the datepicker to view as mm/dd/yyyy. Currently it is viewing as dd/mm/yyyy.
Read more >
Implementing Dynamic and Flexible Date Picker in Tableau
This blog walks through use cases and a step-by-step tutorial on how to implement dynamic date pickers using parameters in Tableau.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found