Skip to content

Commit 844e95e

Browse files
committed
Language tags
1 parent 4975c88 commit 844e95e

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

apps/web/src/components/ActivityFeed.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export default function ActivityFeed() {
126126
<Tag
127127
value={getLanguageLabel(project.lang)}
128128
severity={getLanguageColor(project.lang)}
129-
className="align-self-start mb-3 relative z-1"
129+
className="lang-tag align-self-start mb-3 relative z-1"
130130
/>
131131

132132
<div className="mt-auto text-400 text-sm relative z-1">

apps/web/src/components/PublicUserProfile.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ function SortableProjectCard({ project, projectUrl, isDragging }) {
227227
<Tag
228228
value={getLanguageLabel(project.lang)}
229229
severity={getLanguageColor(project.lang)}
230-
className="align-self-start mb-3 relative z-1"
230+
className="lang-tag align-self-start mb-3 relative z-1"
231231
/>
232232

233233
<div className="mt-auto text-400 text-sm relative z-1">
@@ -746,7 +746,7 @@ export default function PublicUserProfile() {
746746
<Tag
747747
value={getLanguageLabel(project.lang)}
748748
severity={getLanguageColor(project.lang)}
749-
className="align-self-start mb-3 relative z-1"
749+
className="lang-tag align-self-start mb-3 relative z-1"
750750
/>
751751

752752
<div className="mt-auto text-400 text-sm relative z-1">

packages/ui/theme.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,17 @@
111111
border-bottom-color: transparent;
112112
}
113113

114+
// Language tags label a project; they aren't actions. The base theme renders
115+
// every tag as a filled cyan chip, which reads like a button next to the real
116+
// buttons. Give the language tag an outline instead: cyan border and text on a
117+
// transparent fill. Other tags (status, owner) keep the filled style.
118+
.p-tag.lang-tag {
119+
background: transparent;
120+
border: 1px solid var(--zx-cyan);
121+
color: var(--zx-cyan);
122+
font-weight: 600;
123+
}
124+
114125
// Dropdown panels: match the header tone (the base theme uses a cooler grey)
115126
// and round the corners to fit the rest of the UI. Items shrink slightly to
116127
// relate to the menu bar.

0 commit comments

Comments
 (0)