Skip to content

fix(core/category-filter): adjust padding if no icon is shown#2033

Merged
danielleroux merged 30 commits into
siemens:mainfrom
1307-Dev:ix-2082-category-filter
Nov 7, 2025
Merged

fix(core/category-filter): adjust padding if no icon is shown#2033
danielleroux merged 30 commits into
siemens:mainfrom
1307-Dev:ix-2082-category-filter

Conversation

@1307-Dev

@1307-Dev 1307-Dev commented Jul 28, 2025

Copy link
Copy Markdown
Collaborator

💡 What is the current behavior?

There is a space appearing when hide-icon property is set to true.

GitHub Issue Number: #
JIRA issue- IX-2082

🆕 What is the new behavior?

Said space is removed now an replace with a tiny-space

🏁 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 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

changeset-bot Bot commented Jul 28, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fff385b

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

This PR includes changesets to release 1 package
Name Type
@siemens/ix 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

@1307-Dev 1307-Dev marked this pull request as ready for review July 28, 2025 10:23
Comment thread packages/core/src/components/category-filter/category-filter.scss Outdated
@1307-Dev 1307-Dev requested a review from nuke-ellington July 30, 2025 07:42
@sonarqubecloud

Copy link
Copy Markdown

Comment thread packages/core/scss/mixins/_input.scss Outdated
Comment thread packages/core/scss/mixins/_input.scss Outdated
Comment thread packages/core/src/components/category-filter/category-filter.scss Outdated

@nuke-ellington nuke-ellington left a comment

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 all the snapshots change? The padding should be the same?

@nuke-ellington nuke-ellington changed the title Bugfix for category filter fix(core/category-filter): adjust padding if no icon is shown Aug 5, 2025
@1307-Dev 1307-Dev requested a review from nuke-ellington August 7, 2025 10:26

@nuke-ellington nuke-ellington left a comment

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.

It is still unclear why the screenshots changed for the filter with icon?

@1307-Dev

Copy link
Copy Markdown
Collaborator Author

It is still unclear why the screenshots changed for the filter with icon?
I noticed that in ix-category-filter when the state is set to disabled, there is a mismatch in the size of the box and also the text inside while comparing it to the figma document

Current implementation
image
image

Figma Design (here it is mentioned that the component height needs to be 32 pixels and the text is also a bit thinner)

image

With my fix (which is in PR rn), the text is using the intended style, as well as the component height is restored to 32 pixels
image
image

I think the hardcoded implementation from earlier (using !important) was causing this error.

@nuke-ellington nuke-ellington left a comment

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.

We should a no-icon version to the basic VRT snaphot.

@nuke-ellington nuke-ellington added this to the 4.0.0 milestone Sep 26, 2025
@sonarqubecloud

sonarqubecloud Bot commented Oct 6, 2025

Copy link
Copy Markdown

@danielleroux danielleroux removed this from the 4.0.0 milestone Nov 7, 2025
@sonarqubecloud

sonarqubecloud Bot commented Nov 7, 2025

Copy link
Copy Markdown

@danielleroux danielleroux dismissed nuke-ellington’s stale review November 7, 2025 13:44

Reviewed latest changes 👍

@danielleroux danielleroux enabled auto-merge (squash) November 7, 2025 13:44
@danielleroux danielleroux merged commit a56c2e1 into siemens:main Nov 7, 2025
13 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 7, 2025
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.

4 participants