diff --git a/CHANGELOG.md b/CHANGELOG.md index e149c7f4..62877cb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## unreleased +- Big number cards with a `color` once again display their main value in that color in light and dark themes, including values with a link. Their compact vertical padding has also been restored. + ## v0.46.2 - Numeric x values on Cartesian charts now explicitly use a continuous numeric axis, preventing fractional tick positions from being displayed as misleading rounded integers. diff --git a/examples/official-site/sqlpage/migrations/49_big_number.sql b/examples/official-site/sqlpage/migrations/49_big_number.sql index 17c4dccf..42e93e96 100644 --- a/examples/official-site/sqlpage/migrations/49_big_number.sql +++ b/examples/official-site/sqlpage/migrations/49_big_number.sql @@ -22,7 +22,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S ('progress_percent', 'The value of the progress (0-100).', 'INTEGER', FALSE, TRUE), ('progress_color', 'The color of the progress bar (e.g., "primary", "success", "danger").', 'TEXT', FALSE, TRUE), ('dropdown_item', 'A list of JSON objects containing links. e.g. {"label":"This week", "link":"?days=7"}', 'JSON', FALSE, TRUE), - ('color', 'The color of the card', 'COLOR', FALSE, TRUE) + ('color', 'The color of the card background and its main value.', 'COLOR', FALSE, TRUE) ) x; INSERT INTO example(component, description, properties) VALUES diff --git a/sqlpage/templates/big_number.handlebars b/sqlpage/templates/big_number.handlebars index 31eb05ec..385b2ccf 100644 --- a/sqlpage/templates/big_number.handlebars +++ b/sqlpage/templates/big_number.handlebars @@ -8,7 +8,7 @@ {{#unless ../columns}}style="min-width: 9rem;"{{/unless}} {{~#if id}} id="{{id}}"{{/if~}} > -
+