Skip to content

Conversation

@saraDahanCode
Copy link
Collaborator

@saraDahanCode saraDahanCode commented Nov 9, 2025

fix bug: #2464

What I did

Fixed to clear the icon when the icon attribute is removed or empty.

Added test-remove-icon-dynamic.html to demonstrate dynamic removal.

Testing Instructions

Open the demo file in a browser.

Click "Remove Icon" and confirm the icon disappears.

Verify no console errors occur.

Notes to Reviewers

Only affects dynamic icon removal; existing usage is unchanged.

Check that the demo behaves as expected.

@changeset-bot
Copy link

changeset-bot bot commented Nov 9, 2025

🦋 Changeset detected

Latest commit: 593f167

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

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

@netlify
Copy link

netlify bot commented Nov 9, 2025

Deploy Preview for red-hat-design-system ready!

Name Link
🔨 Latest commit 593f167
🔍 Latest deploy log https://app.netlify.com/projects/red-hat-design-system/deploys/693007faf1460c00078852ca
😎 Deploy Preview https://deploy-preview-2727--red-hat-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@saraDahanCode
Copy link
Collaborator Author

@bennypowers @zeroedin @marionnegp Hi,
I'd be happy if you could review my PR.

@mguetta1 mguetta1 requested a review from bennypowers November 10, 2025 10:26
@bennypowers bennypowers changed the title fix(rh-icon): clear displayed icon when icon attribute is removed or empty fix(icon): clear displayed icon when icon attribute is removed or empty Nov 10, 2025
@saraDahanCode saraDahanCode force-pushed the fix/2464-rh-icon-empty-attribute-not-removed branch from 1e99d3d to bd24da9 Compare November 11, 2025 12:36
@bennypowers bennypowers enabled auto-merge (squash) December 3, 2025 09:51
@bennypowers bennypowers merged commit 86fe7aa into RedHat-UX:main Dec 3, 2025
8 checks passed
@github-project-automation github-project-automation bot moved this from Review 🔍 to Done ☑️ in Red Hat Design System Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done ☑️

Development

Successfully merging this pull request may close these issues.

3 participants