Skip to content

Commit

Permalink
Creation of a Labs label for a different page-role (#277)
Browse files Browse the repository at this point in the history
The page-role "Labs" is already used for the Labs template, so in order
to use a Labs label in H2 in an upcoming page in docs, I thought this
could be the way to fix it.

---------

Co-authored-by: Neil Dewhurst <[email protected]>
  • Loading branch information
lidiazuin and recrwplay authored Nov 15, 2024
1 parent 40c47ad commit 8d29094
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions preview-src/labels.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@
<span class="label label--cluster-member-single">SINGLE</span>
</div>
<div class="box">
<span class="label label--labs-label">Labs</span>
</div>
++++

== Tables with labels!
Expand Down
5 changes: 5 additions & 0 deletions src/css/labels.css
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ span.label--labs {
background: var(--color-labs);
}

span.label--labs-label {
background: var(--color-labs);
color: rgba(var(--colors-neutral-10));
}

span.label--graph-academy {
background: var(--success-color);
}
6 changes: 6 additions & 0 deletions src/js/data/rolesData.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
"product": "Labs",
"displayText": "Labs"
},
"labs-label":{
"description": "Neo4j Labs project label",
"labelCategory": "content",
"product": "Labs",
"displayText": "Labs"
},
"graph-academy":{
"description": "Neo4j Graph Academy",
"labelCategory": "content",
Expand Down

0 comments on commit 8d29094

Please sign in to comment.