Skip to content

Commit c999146

Browse files
authored
Fix closed milestones label and icon (#188)
1 parent 51ab39d commit c999146

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
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.0",
7+
"version": "10.1",
88
"homepage_url": "https://github.com/KatsuteDev/GitHub-Red-Issues",
99
"icons": {
1010
"16": "icon16.png",

src/style.css

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ projects-v2 div:has(> span ~ h1) span[data-variant="done"] {
4242
background-color: var(--rissue-issue-closed-fg) !important;
4343
}
4444

45-
svg: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{
46-
fill: unset !important;
47-
}
48-
4945
:is(
5046
span.State--merged, /* issue badge (legacy) */
5147
.TimelineItem-badge, /* timeline icon (legacy) */
@@ -62,11 +58,6 @@ div:is([class^="prc-Timeline-TimelineBadge-"],[class*=" prc-Timeline-TimelineBad
6258
background-color: var(--rissue-issue-closed) !important;
6359
}
6460

65-
/* sub issue circle */
66-
svg[class^="ProgressCircle-module__completedIcon"] > circle{
67-
stroke: var(--rissue-issue-closed) !important;
68-
}
69-
7061
/* progress circle */
7162
:is(
7263
#issue-viewer-side-panel,
@@ -75,7 +66,11 @@ svg[class^="ProgressCircle-module__completedIcon"] > circle{
7566
circle[class^="ProgressCircle-module__circleProgressShade"],
7667
circle[class^="ProgressCircle-module__circleProgress"]
7768
),
78-
projects-v2 svg[data-target="tracked-issues-progress.progress"] circle[stroke-dashoffset]{
69+
projects-v2 svg[data-target="tracked-issues-progress.progress"] circle[stroke-dashoffset],
70+
/* sub issue circle */
71+
svg[class^="ProgressCircle-module__completedIcon"] > circle,
72+
/* milestone circle */
73+
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"]) circle[stroke-linecap="round"]{
7974
stroke: var(--rissue-issue-closed) !important;
8075
}
8176

@@ -86,6 +81,12 @@ projects-v2 svg[data-target="tracked-issues-progress.progress"] circle[stroke-da
8681
react-app[app-name="issues-react"]
8782
) :is(
8883
svg[class^="ProgressCircle-module__completedIcon"]
89-
) > path{
84+
) > path,
85+
/* milestone check */
86+
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{
9087
fill: var(--rissue-issue-closed) !important;
88+
}
89+
90+
svg: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{
91+
fill: unset !important;
9192
}

0 commit comments

Comments
 (0)