-
Notifications
You must be signed in to change notification settings - Fork 20
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
Adjust chart component options #4342
Conversation
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.
Looks good, does it need a changelog entry?
I've also added a small comment about one of the lines in the variant description.
Also, if you rebase with main the Percy diff should be more accurate.
app/views/govuk_publishing_components/components/docs/chart.yml
Outdated
Show resolved
Hide resolved
- bring the text around charts in a bit, as they're currently colliding with the edge of their containing element when shown inside a card block - this option at time of writing isn't available, will be added in alphagov/govuk_publishing_components#4342
5bfda69
to
69108fc
Compare
- whilst this seemed like a good idea at the time, it presents some issues, notably that the chart has nothing that indicates it is a link and can be clicked on - better to remove the link entirely and provide better guidance on how minimal mode should be used i.e. manage linking to or showing more data at an application level, rather than the component level
69108fc
to
e5b481a
Compare
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.
Thanks 👍
- bring the text around charts in a bit, as they're currently colliding with the edge of their containing element when shown inside a card block - this option at time of writing isn't available, will be added in alphagov/govuk_publishing_components#4342
- bring the text around charts in a bit, as they're currently colliding with the edge of their containing element when shown inside a card block - this option at time of writing isn't available, will be added in alphagov/govuk_publishing_components#4342
- bring the text around charts in a bit, as they're currently colliding with the edge of their containing element when shown inside a card block - this option at time of writing isn't available, will be added in alphagov/govuk_publishing_components#4342
- bring the text around charts in a bit, as they're currently colliding with the edge of their containing element when shown inside a card block - this option at time of writing isn't available, will be added in alphagov/govuk_publishing_components#4342
What
Change the chart component. Specifically:
Why
For a minimal chart we thought that it should link to a page with more data, but this has proved complicated in an actual page, and now I think it's better handled in an application rather than dictated by the component.
Padding is needed for when the chart is inside an element with a border, as these elements touch the outer edge.
Visual Changes
No change to the minimal version, except that it no longer has a link.
Padded version shown below with the normal version for comparison (it's a bit subtle, look at the left edge).
Trello card: https://trello.com/c/VKrLuGvg