Skip to content

Commit 0ebc907

Browse files
committed
Style Legend Importance labels: red bold High, orange bold Medium, plain Low
Remove <code> tags from Label column in the Change Importance legend table and apply the same text styling as the detail table Importance column: High = red bold (#d1242f), Medium = orange bold (#d97706), Low = unstyled. https://claude.ai/code/session_01HnKMFA576NFwa2RzB8vCqE
1 parent 0dc071f commit 0ebc907

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Services/HtmlReport/HtmlReportGenerateService.Sections.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ private void AppendHeaderSection(
8888
sb.AppendLine(" <table class=\"legend-table\">");
8989
sb.AppendLine($" <thead><tr><th style=\"background:{TH_BG_DEFAULT}\">{I18n("Label", "ラベル")}</th><th style=\"background:{TH_BG_DEFAULT}\">{I18n("Description", "説明")}</th></tr></thead>");
9090
sb.AppendLine(" <tbody>");
91-
sb.AppendLine($" <tr><td><code>High</code></td><td>{I18n("Breaking change candidate: public/protected API removal, access narrowing, return-type / parameter / member-type change", "破壊的変更候補: public/protected API 削除、アクセス縮小、戻り値型・パラメータ・メンバー型変更")}</td></tr>");
92-
sb.AppendLine($" <tr><td><code>Medium</code></td><td>{I18n("Notable change: public/protected member addition, modifier change, access widening, internal removal", "注目すべき変更: public/protected メンバー追加、修飾子変更、アクセス拡大、internal メンバー削除")}</td></tr>");
93-
sb.AppendLine($" <tr><td><code>Low</code></td><td>{I18n("Low-impact change: body-only modification, internal/private member addition", "低影響変更: 本体のみの変更、internal/private メンバー追加")}</td></tr>");
91+
sb.AppendLine($" <tr><td style=\"color:#d1242f;font-weight:bold\">High</td><td>{I18n("Breaking change candidate: public/protected API removal, access narrowing, return-type / parameter / member-type change", "破壊的変更候補: public/protected API 削除、アクセス縮小、戻り値型・パラメータ・メンバー型変更")}</td></tr>");
92+
sb.AppendLine($" <tr><td style=\"color:#d97706;font-weight:bold\">Medium</td><td>{I18n("Notable change: public/protected member addition, modifier change, access widening, internal removal", "注目すべき変更: public/protected メンバー追加、修飾子変更、アクセス拡大、internal メンバー削除")}</td></tr>");
93+
sb.AppendLine($" <tr><td>Low</td><td>{I18n("Low-impact change: body-only modification, internal/private member addition", "低影響変更: 本体のみの変更、internal/private メンバー追加")}</td></tr>");
9494
sb.AppendLine(" </tbody>");
9595
sb.AppendLine(" </table>");
9696
sb.AppendLine(" </li>");

doc/samples/diff_report.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,9 @@ <h1>Folder Diff Report</h1>
260260
<table class="legend-table">
261261
<thead><tr><th style="background:#f0f0f2">Label</th><th style="background:#f0f0f2">Description</th></tr></thead>
262262
<tbody>
263-
<tr><td><code>High</code></td><td>Breaking change candidate: public/protected API removal, access narrowing, return-type / parameter / member-type change</td></tr>
264-
<tr><td><code>Medium</code></td><td>Notable change: public/protected member addition, modifier change, access widening, internal removal</td></tr>
265-
<tr><td><code>Low</code></td><td>Low-impact change: body-only modification, internal/private member addition</td></tr>
263+
<tr><td style="color:#d1242f;font-weight:bold">High</td><td>Breaking change candidate: public/protected API removal, access narrowing, return-type / parameter / member-type change</td></tr>
264+
<tr><td style="color:#d97706;font-weight:bold">Medium</td><td>Notable change: public/protected member addition, modifier change, access widening, internal removal</td></tr>
265+
<tr><td>Low</td><td>Low-impact change: body-only modification, internal/private member addition</td></tr>
266266
</tbody>
267267
</table>
268268
</li>

0 commit comments

Comments
 (0)