mirror of
https://github.com/home-assistant/frontend.git
synced 2025-05-02 01:07:20 +00:00
Use theme default font for charts (#13210)
* Use theme default font for charts * Prettier
This commit is contained in:
parent
b611a58fce
commit
20bdb9ff35
@ -188,6 +188,10 @@ export default class HaChartBase extends LitElement {
|
|||||||
ChartConstructor.defaults.color = computedStyles.getPropertyValue(
|
ChartConstructor.defaults.color = computedStyles.getPropertyValue(
|
||||||
"--secondary-text-color"
|
"--secondary-text-color"
|
||||||
);
|
);
|
||||||
|
ChartConstructor.defaults.font.family =
|
||||||
|
computedStyles.getPropertyValue("--mdc-typography-body1-font-family") ||
|
||||||
|
computedStyles.getPropertyValue("--mdc-typography-font-family") ||
|
||||||
|
"Roboto, Noto, sans-serif";
|
||||||
|
|
||||||
this.chart = new ChartConstructor(ctx, {
|
this.chart = new ChartConstructor(ctx, {
|
||||||
type: this.chartType,
|
type: this.chartType,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user