-
Notifications
You must be signed in to change notification settings - Fork 30
ChangeBars
Election Trackers Component
#13921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Adds a new election trackers component to display a list of values and the amount by which they've changed. This could be used, for example, to display a list of seats won in an election along with the changes since the last election. The included stories show examples of this. This component is one of several that will allow rendering election trackers within DCAR.
Adds a new election trackers component to display a list of changes. This could be used, for example, to display changes in seats compared to a previous election. The included stories show examples of this. This component is one of several that will allow rendering election trackers within DCAR.
Size Change: +33 B (0%) Total Size: 1.04 MB ℹ️ View Unchanged
|
Source has an object styles API for fonts, which integrates better with the object styles in this component.
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
dotcom-rendering/src/components/ElectionTrackers/ChangeBars.tsx
Outdated
Show resolved
Hide resolved
dotcom-rendering/src/components/ElectionTrackers/ChangeBars.tsx
Outdated
Show resolved
Hide resolved
To handle situations where the user has adjusted their default font size.
Seen on PROD (merged by @JamieB-gu 8 minutes and 24 seconds ago) Please check your changes! |
Adds a new election trackers component to display a list of changes. This could be used, for example, to display changes in seats compared to a previous election. The included stories show examples of this.
This component is one of several that will allow rendering election trackers within DCAR.
Note: This relies on some changes in #13920, so opening as a draft against that branch for now.
Screenshots