Skip to content

feat(mistica-css): card asset#1351

Merged
atabel merged 7 commits into
masterfrom
card-asset-icon
May 6, 2025
Merged

feat(mistica-css): card asset#1351
atabel merged 7 commits into
masterfrom
card-asset-icon

Conversation

@DavidNietoGonzalez
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 22, 2025

Size stats

master this branch diff
Total JS 12.4 MB 12.4 MB 0 B
JS without icons 2.12 MB 2.12 MB 0 B
Lib overhead 77.3 kB 77.3 kB 0 B
Lib overhead (gzip) 17.6 kB 17.6 kB 0 B

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 22, 2025

Accessibility report
✔️ No issues found

ℹ️ You can run this locally by executing yarn audit-accessibility.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 22, 2025

Deploy preview for mistica-web ready!

✅ Preview
https://mistica-a3b2xbxqx-flows-projects-65bb050e.vercel.app

Built with commit 8e5d3b1.
This pull request is being automatically deployed with vercel-action

Comment thread examples/css/index.html Outdated
Comment on lines +296 to +297
<div class="mistica-card__asset-floating">
<div class="mistica-card__asset-icon" style="background: #E6F5FD">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

do we need 2 divs? isn't one enough?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not really. It was done this way to maintain the React structure. It gets reduced and adjusted. Two classes are left: one for each type of asset — one floating and the other embedded in the card.

@atabel atabel requested review from aweell and yceballost April 24, 2025 13:55
Comment thread examples/css/index.html Outdated
Comment thread examples/css/index.html Outdated
Comment thread css/mistica-common.css
height: auto;
}

.mistica-card__asset {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Mmm I have doubts about the asset approach. This container accept any type of content inside not only circle stuff.

Should this class be used for Circle component like .mistica__circle ?
should we use border-radius 50% here? i don't think so 🤔

You could include a horizontal logo like
image

same for floating asset

wdyt @atabel ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ok, this assest is only circle with icon. we can upgrade for another type of asset

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If we want to support any content there yes, I'd create a specific class for the cirlcle style (border-radius: 50%) and only apply it conditionally.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

update with:
Since it is required to include not only an icon but also images and border radius,

three values can be passed:

border-radius
height
width

This allows us to have:

icon and image positioned absolutely or in their natural position
icon and image with border radius
icon with or without background

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

great 🙌✨

@atabel atabel requested review from atabel and yceballost May 5, 2025 09:05
@atabel atabel enabled auto-merge May 6, 2025 09:18
@atabel atabel added this pull request to the merge queue May 6, 2025
Merged via the queue into master with commit 45c275f May 6, 2025
11 checks passed
@atabel atabel deleted the card-asset-icon branch May 6, 2025 09:39
tuentisre pushed a commit that referenced this pull request May 6, 2025
# [16.23.0](v16.22.0...v16.23.0) (2025-05-06)

### Features

* **mistica-css:** breadcrumbs ([#1349](#1349)) ([eeb36b2](eeb36b2))
* **mistica-css:** card asset ([#1351](#1351)) ([45c275f](45c275f))
* **mistica-css:** GridLayout ([#1355](#1355)) ([da0a953](da0a953))
* **mistica-css:** Table implementation ([#1352](#1352)) ([d26129e](d26129e))
* **PinField:** wrap to next line when digits don't fit in viewport ([#1359](#1359)) ([13e13ed](13e13ed))
* **TextField:** make field error aria-live ([#1348](#1348)) ([1c45c55](1c45c55))
@tuentisre
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 16.23.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants