FlowFuse / FlowFuse/node-red-dashboard

Custom CSS for buttons - problem controlling font size

Open
#534 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
355
Forks
82
Avg merge
4d 23h
Merged PRs (30d)
24

Description

I apologize if this is due to my lack of knowledge of CSS, I am very much a beginner

I want to use a button as my group name so I can have a refresh option without taking additional display space. All good but now I need to increase the button font size to match the group name font. I define a CSS class to left justify and enlarge the font, and set it on the button definition. This technique works for me with Text display widgets. However while the button text is left justified, the font is unchanged.

Examining the style inheritance for the button text I see
![image](https://github.com/FlowFuse/node-red-dashboard/assets/41355165/f74b97de-d961-4c70-ab1a-cb165b4b18cd)

and further down
![image](https://github.com/FlowFuse/node-red-dashboard/assets/41355165/4a6e7dcc-5673-47d9-b20b-4a735f53d78a)

My controls are present, but are not being used - even though they are tagged 'Important'
- Initially I had only the font-size control, not --v-btn-size. Neither work

My controls do work if the 'default' controls are not present
... the display I get
![image](https://github.com/FlowFuse/node-red-dashboard/assets/41355165/a8da9b5a-87ff-456b-bad0-cd72e7b1bc55)

... if default font-size is disabled the custom class font size is used
![image](https://github.com/FlowFuse/node-red-dashboard/assets/41355165/cb297a09-5762-46c2-9edf-1c142c5aae4c)

... if default --v-btn-size is disabled my --v-btn-size is used
![image](https://github.com/FlowFuse/node-red-dashboard/assets/41355165/414c0579-51cf-4ed3-9f68-6d840bb2f529)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.