Skip to content

fix: (core/blind and core/push-card) Added margin for variants and updated the outline variant to figma design.#2520

Open
1307-Dev wants to merge 17 commits into
mainfrom
ix-4047-blind-pushcard
Open

fix: (core/blind and core/push-card) Added margin for variants and updated the outline variant to figma design.#2520
1307-Dev wants to merge 17 commits into
mainfrom
ix-4047-blind-pushcard

Conversation

@1307-Dev
Copy link
Copy Markdown
Collaborator

@1307-Dev 1307-Dev commented Apr 27, 2026

💡 What is the current behavior?

No borders present for alarm, success, other validation variants.
Outline variant behavior is different from figma design.

GitHub Issue Number: #
Jira Ticket- IX-4047

🆕 What is the new behavior?

Added CSS changes to reflect figma design better

🏁 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
  • 📕 Add or update a Storybook story
  • 📄 Documentation was reviewed/updated siemens/ix-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

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 27, 2026

🦋 Changeset detected

Latest commit: e642b18

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

This PR includes changesets to release 5 packages
Name Type
@siemens/ix Patch
@siemens/ix-angular Patch
@siemens/ix-docs 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

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the styling for the blind and push-card components, introducing a new header wrapper and specific styles for various variants like outline, alarm, and warning. The feedback identifies that a changeset is required for these user-facing changes and that axe-based accessibility tests should be added to cover the new interaction states. Additionally, the border-radius calculations in both components should be corrected to ensure visual symmetry between the top and bottom corners.

Comment thread packages/core/src/components/blind/blind.scss Outdated
Comment thread packages/core/src/components/blind/blind.scss Outdated
Comment thread packages/core/src/components/blind/blind.scss Outdated
Comment thread packages/core/src/components/push-card/push-card.scss Outdated
@1307-Dev 1307-Dev changed the title feat: (core/blind and core/push-card) Added margin for variants and updated the outline variant to figma design. fix: (core/blind and core/push-card) Added margin for variants and updated the outline variant to figma design. Apr 27, 2026
1307-Dev and others added 8 commits April 28, 2026 04:28
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
@1307-Dev 1307-Dev marked this pull request as ready for review April 29, 2026 16:41
}

@if $variant == 'filled' {
background-color: var(--theme-blind-base--background);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Seems like a redundant statement (filled != outline).

Comment on lines +250 to +251
// Handle collapsed state for outline variant
// When collapsed, header wrapper needs bottom border and full border-radius
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// Handle collapsed state for outline variant
// When collapsed, header wrapper needs bottom border and full border-radius

}
}

// Header wrapper with borders (only for outline variant)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// Header wrapper with borders (only for outline variant)

}
}

// Blind content with borders (non-reactive, stays default)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// Blind content with borders (non-reactive, stays default)

grid-template-rows: 14.75rem;
opacity: 1;
border-radius: var(--ix-card-accordion-expand-content--border-radius, 0);
overflow: var(--ix-card-accordion-expand-content--overflow, visible);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why is this neccessary?


.expand-content.show {
border: var(
--theme-push-card-#{$variant}-accordion-frame--border-width,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why did we change border width var?

border-top: none;
}

&.hide {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

border vanishes during close animation which looks weird and is distracting

Comment on lines +46 to +48
--theme-push-card-#{$variant}-accordion--background--hover: var(--theme-push-card-#{$variant}-accordion--background);
--theme-push-card-#{$variant}-accordion--background--active: var(--theme-push-card-#{$variant}-accordion--background);
--theme-push-card-#{$variant}-accordion-frame--border-color: var(--theme-push-card-#{$variant}-accordion--background);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why are they all the same. This removes the mouse state visual feedback

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

End of closing animation has a bouncy effect now.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 22, 2026

Deploy Preview for ix-storybook ready!

Name Link
🔨 Latest commit e642b18
🔍 Latest deploy log https://app.netlify.com/projects/ix-storybook/deploys/6a1066c1a6cf8300086f549c
😎 Deploy Preview https://deploy-preview-2520--ix-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@sonarqubecloud
Copy link
Copy Markdown

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.

2 participants