MelleD / lovelace-expander-card

Expander card for HomeAssistant
Apache License 2.0
43 stars 6 forks source link

Make the title an actual ##title #217

Open igorsantos07 opened 1 month ago

igorsantos07 commented 1 month ago

Is your feature request related to a problem? Please describe. Currently, the title field is simply a line of small text.

Describe the solution you'd like It should align with the title markup for the other default HA cards.

Describe alternatives you've considered Right now, I'm using a markdown card as title-card, with an h2 (e.g. ## Here be title).

Additional context To avoid breaking for current users, I guess an option should be included to "make title bigger" or something like that - although I do think this should be the default, to keep in line with the rest of the cards.

And god, thanks for resurrecting the repo from the original developer! <3

MelleD commented 1 month ago

Hey @igorsantos07 ,

you have currently 2 possibility to achieve that: a) Use card mod e.g.

        card_mod:
          style: |
            button.header {
              font-size: 30px;
            }

b) Use your markdown card as title card. I make the same thing with mushroom template cards to styling my header for the expander

Please let me know if this is working for you

igorsantos07 commented 1 month ago

Yeah, I know there are options around it, as I even mentioned in the description. However, I still think it would be saner if the title did look like the default card titles from HA... Either by default or via a simple toggle option, instead of having to resort to card-mod or a secondary card just to make the title look like a title.

MelleD commented 1 month ago

I just wanted to show you alternatives to achieve your goal until someone contributes the feature, but of course you can wait :-). or even better, do a PR straight away

igorsantos07 commented 1 month ago

There are a lot of stuff in HA I want to make PRs, but (1) no clue where to start with testing HACS stuff on my instance and, most importantly, (2) got a huge backlog and attention deficit to battle at work 🥲

MelleD commented 1 month ago

I think everyone has the same situation, where and when do you invest valuable time. I don't think anyone has too much time.