chartjs / chartjs/Chart.js

Allow Font size properties to accept strings?

Open
#9,615 3 comments 0 reactions 0 assignees View on GitHub
type: enhancement
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Feature Proposal

The `size` property of [Fonts](https://www.chartjs.org/docs/latest/general/fonts.html) can be either a number OR a string, to allow for relative or other units like `2rem`.

### Feature Use Case

Our app follows a design system where fonts are sized by `rem` values, and using a relative value like `rem` or `em` is the recommended best practice for responsive web design.

## Possible Implementation

I hope it would be not difficult to implement, but if there's some hidden reason this would be very challenging, I understand that too.

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.