update styling for custom draftPR icon inside gh-pull-requests-board (#2049)

* use default mui theme color instead of hardcoding black

Signed-off-by: Alex McKay <amckay@spotify.com>

* fix changset

Signed-off-by: Alex McKay <amckay@spotify.com>

---------

Signed-off-by: Alex McKay <amckay@spotify.com>
This commit is contained in:
Alex McKay 2024-11-20 16:06:58 -05:00 committed by GitHub
parent fccccb1145
commit 5c7171c049
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 10 deletions

View File

@ -0,0 +1,5 @@
---
'@backstage-community/plugin-github-pull-requests-board': patch
---
Make draft PR icon color inherit from theme

View File

@ -24,16 +24,14 @@ const DraftPr: FunctionComponent = () => (
width="16"
data-view-component="true"
>
<g color="rgba(0, 0, 0, 0.38)">
<path
fill="currentcolor"
d="M2.5 3.25a.75.75 0 111.5 0 .75.75 0 01-1.5 0zM3.25 1a2.25 2.25 0 00-.75 4.372v5.256a2.251 2.251 0 101.5 0V5.372A2.25 2.25 0 003.25 1zm0 11a.75.75 0 100 1.5.75.75 0 000-1.5zm9.5 3a2.25 2.25 0 100-4.5 2.25 2.25 0 000 4.5zm0-3a.75.75 0 100 1.5.75.75 0 000-1.5z"
/>
<path
fill="currentcolor"
d="M14 7.5a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zm0-4.25a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0z"
/>
</g>
<path
fill="currentcolor"
d="M2.5 3.25a.75.75 0 111.5 0 .75.75 0 01-1.5 0zM3.25 1a2.25 2.25 0 00-.75 4.372v5.256a2.251 2.251 0 101.5 0V5.372A2.25 2.25 0 003.25 1zm0 11a.75.75 0 100 1.5.75.75 0 000-1.5zm9.5 3a2.25 2.25 0 100-4.5 2.25 2.25 0 000 4.5zm0-3a.75.75 0 100 1.5.75.75 0 000-1.5z"
/>
<path
fill="currentcolor"
d="M14 7.5a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zm0-4.25a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0z"
/>
</svg>
);