Repository navigation
fix(design-system): stop raw buttons from filling stroke-only shapes in resource icons - #3575
Merged
Merged
Conversation
…in resource icons
Member
Author
JammingBen
approved these changes
Oct 7, 2026
openclouders
pushed a commit
that referenced
this pull request
Oct 7, 2026
…in resource icons (#3575)
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
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.

Description
Some file type icons were drawn with dark (light mode) or light (dark mode) filled shapes in the tiles view, e.g. the paint brush of the Excalidraw / graphic icon.
OcButtonsetsfill: var(--oc-button-color)on.oc-icon > svgin raw buttons (OcButton.vue:239-241). That overrides thefill="none"on the root of the resource icon SVGs, and shapes that only have astrokeinherit the button color as their fill.fill="none", so they no longer inherit a fill from outside. Affected icons: graphic (odg, excalidraw), jupyter (+ dark), dicom, code (+ dark).OcButton: excluding resource icons there would make the design system depend on theoc-resource-iconclass fromweb-pkg; fixing the SVGs keeps the icons correct wherever they are rendered.The code icon looked correct in this tiles view (a
.jstile is not rendered inside a raw button here), but its SVG has the same stroke-only path, so it gets the same fix.Related Issue
How Has This Been Tested?
.excalidraw,.ipynb,.dcmand.jsfiles in tiles view → brush, notebook, X-ray and code icons are drawn as outlines, no filled shapesfillof the stroke-only shapes isnonein light and dark mode (before:rgb(32, 67, 79)/rgb(179, 202, 212))Types of changes