mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-06-15 04:52:55 -04:00
🐛 Fix charts displaying using default colours
This commit is contained in:
@@ -32,6 +32,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
- Appearance switcher missing `aria-label` ([#438](https://github.com/jpanther/congo/pull/438))
|
||||
- Article links missing `alt` text and `aria-label` ([#439](https://github.com/jpanther/congo/pull/439))
|
||||
- Figure shortcode would not apply `class` or `href` attribtues in some cases
|
||||
- Charts displaying with incorrect theme colours
|
||||
|
||||
## [2.4.2] - 2022-11-22
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ function css(name) {
|
||||
}
|
||||
|
||||
Chart.defaults.font.size = 14;
|
||||
Chart.defaults.plugins.colors.enabled = false;
|
||||
Chart.defaults.backgroundColor = css("--color-primary-300");
|
||||
Chart.defaults.elements.point.borderColor = css("--color-primary-400");
|
||||
Chart.defaults.elements.bar.borderColor = css("--color-primary-500");
|
||||
|
||||
Reference in New Issue
Block a user