Skip to content

Add option to Stats cards to remove max-width style rule #1478

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
Jura opened this issue Jan 3, 2025 · 0 comments
Closed

Add option to Stats cards to remove max-width style rule #1478

Jura opened this issue Jan 3, 2025 · 0 comments

Comments

@Jura
Copy link
Member

Jura commented Jan 3, 2025

Currently every Stats card option (small, medium, large and Extra large) has its own maximum width set along side with other properties.

https://design.undp.org/?path=/story/components-ui-components-cards-stats-card--stats-card-story

We need to introduce an option to add .full-width class which will reset that property and let stats card occupy entire container

@ElijahJKim ElijahJKim assigned ElijahJKim and unassigned ElijahJKim Jan 20, 2025
ElijahJKim added a commit that referenced this issue Jan 20, 2025
Jura added a commit that referenced this issue Jan 20, 2025
#1478 - added "remove max-width" option to stats-cards and updated docs
Jura added a commit that referenced this issue Jan 22, 2025
* Version bumped to 1.3.9

* Convert to W3C DTCG format, read more at https://docs.tokens.studio/convert-to-dtcg-format

* Update package-lock.json

* #1478 - added "remove max-width" option to stats-cards and updated docs

* #1478 - changes in stats-cards.scss

* Updated lock file

* Lock file updated

---------

Co-authored-by: Jura Khrapunov <jura.khrapunov@undp.org>
Co-authored-by: elijah <elijahkim45@gmail.com>
@Jura Jura closed this as completed Jan 24, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants