This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch sbp
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/sbp by this push:
     new f424e22c Improve the style of classification badges
f424e22c is described below

commit f424e22cdb347cd30195defe364b28c335f427a9
Author: Sean B. Palmer <[email protected]>
AuthorDate: Wed Mar 4 15:31:47 2026 +0000

    Improve the style of classification badges
---
 atr/static/css/atr.css                       | 23 +++++++++++++++++++++++
 atr/templates/check-selected-path-table.html | 10 +++++-----
 2 files changed, 28 insertions(+), 5 deletions(-)

diff --git a/atr/static/css/atr.css b/atr/static/css/atr.css
index bc8af074..590ed0ed 100644
--- a/atr/static/css/atr.css
+++ b/atr/static/css/atr.css
@@ -620,3 +620,26 @@ td.atr-shrink {
 .atr-text-blocker {
     color: rgb(111 0 193) !important;
 }
+
+.atr-classification-badge {
+    border-width: 1.5px;
+    border-style: solid;
+    padding: 0 5px;
+    border-radius: 6px;
+    font-weight: 500;
+    min-width: 56px;
+    display: inline-block;
+    text-align: center;
+}
+
+.atr-text-blocker .atr-classification-badge {
+    background-color: #f8f3fd;
+}
+
+.text-success .atr-classification-badge {
+    background-color: #f3f9f6;
+}
+
+.text-danger .atr-classification-badge {
+    background-color: #fdf6f6;
+}
diff --git a/atr/templates/check-selected-path-table.html 
b/atr/templates/check-selected-path-table.html
index d43adae6..3f5b46cb 100644
--- a/atr/templates/check-selected-path-table.html
+++ b/atr/templates/check-selected-path-table.html
@@ -33,18 +33,18 @@
         {% endif %}
 
         <tr class="{{ row_bg_class }}">
-          <td class="text-center px-0 py-2 atr-sans {{ icon_class }}">
+          <td class="text-center px-0 py-0 atr-sans {{ icon_class }}">
             {% set file_type = info.file_types[path].value if (info and (path 
in info.file_types)) else None %}
 
             {% if file_type == "disallowed" %}
-              <span title="Disallowed file">Ⓧ</span>
+              <span class="atr-classification-badge" title="Disallowed 
file">bad</span>
             {% elif file_type == "source" %}
-              <span title="Source artifact">Ⓢ</span>
+              <span class="atr-classification-badge" title="Source 
artifact">src</span>
             {% elif file_type == "metadata" %}
-              <span title="Metadata file">Ⓜ</span>
+              <span class="atr-classification-badge" title="Metadata 
file">meta</span>
             {# elif file_type == "binary" #}
             {% else %}
-              <span title="Binary artifact">Ⓑ</span>
+              <span class="atr-classification-badge" title="Binary 
artifact">bin</span>
             {% endif %}
           </td>
           <td class="py-2">


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to