Font size for title on card widget

how can I change the size of the font used for the title of an oh-toggle-card or oh-rollershutter-card widget ? I’ve tried several things based on google search, but non of the solution (things like fontsize in YAML config) increased the font.

image

The current answer is akin to this:

However, if you are willing to use a snapshot version or wait just a little bit for the next milestone, then it will be substantially easier. All the cards have been recently rebuilt so you would just need to use the new property headerStyle:

- component: oh-toggle-card
  config:
    headerStyle:
      fontSize: 32px

Hi @JustinG unfortunatelly, this does not work either. what I size i chose, the size remains the same. here’s what I configured.

- component: oh-toggle-card
  config:
    item: Licht_EG_Whz1
    title: Licht Whz 1
    headerStyle:
      fontSize: 20px

any idea ?

What version are you using?

Version: 4.2.0 (Build)

Well, that’s your problem. As I indicated, headerStyle is a very new feature. It is not available on anything but the most recent snapshots (going back only a couple of weeks), and now the most recent milestone that was just released. On 4.2, you’re going to have to use stylesheet workaround as demonstrated in the link I posted (only with font-size instead of font-weight).

sorry, i missed that. i tried the “old” way as you pointed out in the link and it works fine, at least in any Browser on PC. but if I open the page on a Tablet (both Android with Chrome or IOS with Safari), it still does not work. is there another “trick” i need to apply to get it working on tablets ?
thanks a lot. appreciate your help.

No, the stylesheet works just fine on android phones and tablets for me. You probably have to re-fresh the page cache or use the Help and AboutReload App link.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.