Skip to content

Commit

Permalink
Merge pull request #4271 from alphagov/big-number-fix-sep-2024
Browse files Browse the repository at this point in the history
Show all big_number symbol types in our docs
  • Loading branch information
AshGDS authored Sep 27, 2024
2 parents f8d8c29 + f60e418 commit 0f6b48d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
## Unreleased

* Update accessibility criteria in component docs ([PR #4242](https://github.com/alphagov/govuk_publishing_components/pull/4242))
* Show all big_number symbol types in our docs ([PR #4271](https://github.com/alphagov/govuk_publishing_components/pull/4271))

## 43.5.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,26 @@ examples:
data:
number: 119
label: Open consultations
passing_extra_symbols:
description: "In some cases, we want to communicate more than just the flat numeric value eg: `400+`, `90%`, `-20`, `1M` etc. This is why we allow values to be passed as flat strings."
with_plus_symbol:
description: "In some cases, we want to communicate more than just the flat numeric value eg: `400+`. This is why we allow values to be passed as flat strings."
data:
number: "400+"
label: Other agencies and public bodies
with_percentage_symbol:
description: "In some cases, we want to communicate more than just the flat numeric value eg: `90%`. This is why we allow values to be passed as flat strings."
data:
number: "90%"
label: is a large percentage of something
with_negative_symbol:
description: "In some cases, we want to communicate more than just the flat numeric value eg: `-20`. This is why we allow values to be passed as flat strings."
data:
number: "-20"
label: is a negative number
with_unit_symbol:
description: "In some cases, we want to communicate more than just the flat numeric value eg: `1M`. This is why we allow values to be passed as flat strings."
data:
number: "1M"
label: is a shorter way of saying one million
with_link:
data:
number: 23
Expand Down

0 comments on commit 0f6b48d

Please sign in to comment.