Skip to content
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

Undocumented/refactor zui bar diagram #2221

Open
wants to merge 2 commits into
base: undocumented/new-design-system
Choose a base branch
from

Conversation

ziggabyte
Copy link
Contributor

Description

This PR adds some minor refactoring to the work done by @river-bbc and @lewis-conroy on creating the ZUIBarDiagram component.

Changes

  • use the theme for color
  • change sizes to small, medium and large
  • minor styling updates

Related issues

none

Copy link
Member

@richardolsson richardolsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! There's a piece of logic here that is difficult for me to understand but that doesn't need to block the merge.

Comment on lines +41 to +50
const colors = [
theme.palette.data[900],
theme.palette.data[300],
theme.palette.data[100],
];
colors.splice(
1,
0,
values.length == 3 ? theme.palette.data[700] : theme.palette.data[500]
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't fully understand this logic and I'm not sure if it's just because I'm tired. Lets discuss tomorrow!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants