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

feat(fact and figures): update component display - FRONT-3840 #2737

Merged
merged 8 commits into from
Jan 31, 2023

Conversation

emeryro
Copy link
Contributor

@emeryro emeryro commented Jan 25, 2023

Update spacing and typography, and allows display on 1 to 4 columns

@github-actions
Copy link

github-actions bot commented Jan 25, 2023

Copy link
Contributor

@planctus planctus left a comment

Choose a reason for hiding this comment

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

Small issue in the story file, couple of suggestions

@@ -122,8 +127,8 @@ export default {
};

export const Default = (args) =>
factFigures(prepareData(correctPaths(data3Col), args));
factFigures(prepareData(correctPaths(demoData), args));
Copy link
Contributor

Choose a reason for hiding this comment

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

you pass the data through correctPaths() already in prepareData(), now.. ;)

}
// Column display
clone.column = args.column;
if (args.column < 3) {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe a ternary operator, here..? you can leave it like it is if you prefer it, eh, there is nothing wrong with it.

@emeryro emeryro merged commit 2b9bbed into v3.7.0-dev Jan 31, 2023
@emeryro emeryro deleted the FRONT-3840-fact-figures branch January 31, 2023 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants