Skip to content

Commit 28c7778

Browse files
authored
Fix label color (#192)
1 parent 40503a0 commit 28c7778

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "GitHub Red Issues",
55
"author": "Katsute",
66
"description": "Revert closed GitHub issues from purple back to red.",
7-
"version": "10.2",
7+
"version": "10.3",
88
"homepage_url": "https://github.com/KatsuteDev/GitHub-Red-Issues",
99
"icons": {
1010
"16": "icon16.png",

src/style.css

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
) > :not(
1515
span.State--merged,
1616
span[class^="StateLabel__StateLabelBase"],
17-
projects-v2 span[class^="StateLabel__StateLabelBase"],
17+
span[class^="prc-StateLabel-StateLabel"],
1818
.TimelineItem-Badge,
1919
.TimelineItem-badge,
2020
div:is([class^="prc-Timeline-TimelineBadge-"],[class*=" prc-Timeline-TimelineBadge-"]),
@@ -48,6 +48,7 @@ projects-v2 div:has(> span ~ h1) span[data-variant="done"] {
4848
):has(svg.octicon-issue-closed, svg.octicon-discussion-closed),
4949
:is(
5050
span[class^="StateLabel__StateLabelBase"], /* new issue badge & projects v2 */
51+
span[class^="prc-StateLabel-StateLabel"],
5152
):has(path[d="M11.28 6.78a.75.75 0 0 0-1.06-1.06L7.25 8.69 5.78 7.22a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l3.5-3.5Z"] + path[d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z"]),
5253
/* timeline icon (legacy) */
5354
.TimelineItem-Badge:has(path[d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm1.5 0a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm10.28-1.72-4.5 4.5a.75.75 0 0 1-1.06 0l-2-2a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l1.47 1.47 3.97-3.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"]),
@@ -78,13 +79,7 @@ a[href*="/milestone/"] :is(
7879
}
7980

8081
/* progress check */
81-
:is(
82-
projects-v2,
83-
#issue-viewer-side-panel,
84-
react-app[app-name="issues-react"]
85-
) :is(
86-
svg[class^="ProgressCircle-module__completedIcon"]
87-
) > path,
82+
svg[class^="ProgressCircle-module__completedIcon"] > path,
8883
/* milestone check */
8984
a[href*="/milestone/"] svg:has(path[d="M10.0206 11.1074C9.68518 11.3949 9.18014 11.3561 8.8926 11.0206L5.8926 7.52061C5.62055 7.20322 5.63873 6.72989 5.93432 6.4343L7.43432 4.9343C7.74674 4.62188 8.25327 4.62188 8.56569 4.9343C8.87811 5.24672 8.87811 5.75325 8.56569 6.06567L7.58953 7.04182L10.1074 9.97935C10.3949 10.3148 10.3561 10.8198 10.0206 11.1074Z"]) path{
9085
fill: var(--rissue-issue-closed) !important;

0 commit comments

Comments
 (0)