kinghat / tabbed-card

a custom card for home assistant that utilizes tabs to segregate individual cards.
MIT License
103 stars 10 forks source link

I cant see the label of the tabs #52

Closed idorose closed 1 year ago

idorose commented 1 year ago

I'm trying to create a tabbed card for my remotes, each card is vertical stack of horizontal stacks with buttons I see the tab at the top but the label is not showing, i tried to change the color and font size with the styles but it only changed the color of the ident of the tab and resizing didn't seem to have any affect

I'm using latest HA version (2022.12.0) and I installed manually (added all of the files in SRC folder to resources and the latest release tabbed-card.js).

kinghat commented 1 year ago

can you please post a screenshot/cast of the issue and your exact config?

idorose commented 1 year ago

Screenshot_2022-12-10-21-53-58-80_c3a231c25ed346e59462e84656a70e50.jpg

this is the code: http://pastie.org/p/0kDBTkLHi4XfyiREODvAWO

but it also happens with the default card showing the sun

kinghat commented 1 year ago

thats not following the configuration schema: https://github.com/kinghat/tabbed-card#card-schema

type: custom:tabbed-card
tabs:
  - label: Kodi
    card:
      ...

should be:

type: custom:tabbed-card
tabs:
  - card:
      type:
    attributes:
      label: string

can you post the same for the default card you are talking about? if youre talking about whats returned form the editor, thats being worked on so isnt functional and you can disregard.

please close this issue if you find it was an incorrect configuration issue. thanks.

idorose commented 1 year ago

thank, i was missing the "attributes" as i copied the script from the default card which is also missing it