APS Icon Fixes (Safer SVG Rendering) - #1345
Conversation
|
Chorus detected one or more security issues with this pull request. See the Checks tab for more details. As a reminder, please follow the secure code review process as part of the Secure Coding Trust Commitment requirement. |
There was a problem hiding this comment.
I think we need to talk about these changes before merging, as the solution seems pretty scuffed and I don't fully believe everything Claude wrote in the TopBarIcons.tsx comment.
Also, the usage of dangerouslySetHtml is questionable, even though it doesn't use user input.
|
@copilot what are your thoughts on the changes made in TopBarIcons.tsx |
Yes — I replaced the |
|
@AlexD717 could you take a look again and see if this still fixes it for you? |
|
@Dhruv-0-Arora Yes, this also fixed it for me. |
… into alexey/claude-aps-icon-fixes
37235a6
into
darora1/142/desktop-ui-redesign
Symptom
Logging in with APS caused some top bar icons to become invisible.
Solution
Reworked top bar icon rendering to keep inline SVG behavior while using a safer implementation:
dangerouslySetInnerHTMLusage inTopBarIcons.tsx.DOMParserand append cloned SVG nodes.Verification
<img>).src/test/ui/TopBarIcons.test.tsx.Before merging, ensure the following criteria are met: