-
Notifications
You must be signed in to change notification settings - Fork 8
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: add dashboard lightweight card #289
feat: add dashboard lightweight card #289
Conversation
size-limit report 📦
|
@kertuilves just confirming that this is the component |
Hey @kertuilves Would be good to see multiple cards in the same view so we can assess how they work together? Similar to this. Right now it seems to take full width, so unclear how it would function with multiple cards Additionally
|
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.
Use vaadin badge for tags. |
8d0f8ab
to
86cae23
Compare
Hey @heshfekry.
|
Looking good. The size seems to change with different states, unclear how that plays with multiple cards in the same view. |
I kept the card itself really basic and didn't constrain its component width. In my opinion this should be done when adding the card to the specific layout. In our example when adding it to the slider in the accordion. And those slider styles and card widths are right now visible in the accordion PR. |
This makes sense. Does this apply to height too? for example when you introduce the tags or the names etc take more space. |
Yes. So all the cards heights will be the same and it depends on the highest card. I kept it the same way as it is for the slider cards by default. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
packages/storybook/cxl-ui/cxl-card/[theme=cxl-course].stories.js
Outdated
Show resolved
Hide resolved
86cae23
to
8746bea
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.
Looking good. Concerns about logic.
packages/storybook/cxl-ui/cxl-card/[theme=cxl-course].stories.js
Outdated
Show resolved
Hide resolved
packages/storybook/cxl-ui/cxl-card/[theme=cxl-course].stories.js
Outdated
Show resolved
Hide resolved
packages/storybook/cxl-ui/cxl-card/[theme=cxl-course].stories.js
Outdated
Show resolved
Hide resolved
bf1c620
to
2bbc028
Compare
3156038
to
81ee5d4
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.
[theme~='badge'][theme~='secondary'] { | ||
color: var(--lumo-primary-contrast-color); | ||
background-color: var(--cxl-color-brand-blue); | ||
} | ||
|
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.
Please make it separate commit as it's badge feature
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.
@kertuilves following it up
I made the slider changes now here, too. But this was already discussed above that those slider styles were already under #288. And the slider here was just to show how multiple cards together would behave. |
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.
Please put badge code into one commit and rest into another
[theme~='badge'][theme~='secondary'] { | ||
color: var(--lumo-primary-contrast-color); | ||
background-color: var(--cxl-color-brand-blue); | ||
} | ||
|
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.
@kertuilves following it up
d4b8555
to
95ac784
Compare
95ac784
to
6cbc90b
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.
Good job 👍
Next step: refactor to use base class
6cbc90b
to
1fae565
Compare
35b7b02
to
bdb5cf1
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.
@kertuilves I marked couple of changes which should go into "improve base card" commit. For storybook templates it's not just a line I left the comment but all changes which are caused by showTimeIcon
property introduction.
Light card itself looks good
bdb5cf1
to
4989403
Compare
https://app.clickup.com/t/861n0qm47