-
Notifications
You must be signed in to change notification settings - Fork 34
fix(icon): clear displayed icon when icon attribute is removed or empty #2727
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
Merged
bennypowers
merged 13 commits into
RedHat-UX:main
from
saraDahanCode:fix/2464-rh-icon-empty-attribute-not-removed
Dec 3, 2025
Merged
fix(icon): clear displayed icon when icon attribute is removed or empty #2727
bennypowers
merged 13 commits into
RedHat-UX:main
from
saraDahanCode:fix/2464-rh-icon-empty-attribute-not-removed
Dec 3, 2025
+29
−1
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🦋 Changeset detectedLatest commit: 593f167 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
✅ Deploy Preview for red-hat-design-system ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Collaborator
Author
|
@bennypowers @zeroedin @marionnegp Hi, |
bennypowers
previously requested changes
Nov 10, 2025
1e99d3d to
bd24da9
Compare
bennypowers
approved these changes
Dec 3, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.