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

Improve card and push-card components #1621

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Conversation

AndreasBerliner
Copy link
Collaborator

@AndreasBerliner AndreasBerliner commented Dec 16, 2024

💡 What is the current behavior?

  • The card component does not display the 'pointer' cursor on hover.
  • The overflow of the card component and push-card component is not hidden.
  • The push-card component does not display the correct cursors.

GitHub Issue Number: IX-529

🆕 What is the new behavior?

  • The card component displays the 'pointer' cursor on hover.
  • The overflow of the card component and push-card component is hidden.
  • The push-card component displays the default cursor on the upper area and a pointer cursor on the lower area.
  • height and width of the icon has been adapted, as transform were used, the layout of the icon didnt change but the size, with the new behavior of clipping at 1rem this has 1px cutoff of the icon, additionally figma has also placed the icon differently

🏁 Checklist

A pull request can only be merged if all of these conditions are met (where applicable):

  • 🦮 Accessibility (a11y) features were implemented
  • 🗺️ Internationalization (i18n) - no hard coded strings
  • 📲 Responsiveness - components handle viewport changes and content overflow gracefully
  • 📄 Documentation was reviewed/updated (pnpm run docs)
  • 🧪 Unit tests were added/updated and pass (pnpm test)
  • 📸 Visual regression tests were added/updated and pass (Guide)
  • 🧐 Static code analysis passes (pnpm lint)
  • 🏗️ Successful compilation (pnpm build, changes pushed)

👨‍💻 Help & support

Copy link

changeset-bot bot commented Dec 16, 2024

🦋 Changeset detected

Latest commit: 06597db

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@siemens/ix Patch
@siemens/ix-angular Patch
@siemens/ix-react Patch
@siemens/ix-vue Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@AndreasBerliner AndreasBerliner marked this pull request as ready for review December 19, 2024 12:28
Copy link
Collaborator

@nuke-ellington nuke-ellington left a comment

Choose a reason for hiding this comment

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

Add VRT for overflow handling

test(push-card): move overflow vrt to separate describe

test(card): move overflow vrt to separate describe

test(push-card): add vrt snapshots

test(card): add vrt snapshots

test(push-card): add vrt for text overflow

test(card): add vrt for text overflow
nuke-ellington
nuke-ellington previously approved these changes Jan 13, 2025
}

.card-content-wrapper {
padding: 1rem;
Copy link
Collaborator

Choose a reason for hiding this comment

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

In case ix-card-content was is not used this will create padding that was not there before.
Resulting VRT snapshot:

Screenshot 2025-01-13 at 15 47 54

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.

3 participants