Skip to content

Commit 8d29094

Browse files
lidiazuinrecrwplay
andauthored
Creation of a Labs label for a different page-role (#277)
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]>
1 parent 40c47ad commit 8d29094

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

preview-src/labels.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@
182182
<span class="label label--cluster-member-single">SINGLE</span>
183183
</div>
184184
185+
<div class="box">
186+
<span class="label label--labs-label">Labs</span>
187+
</div>
188+
185189
++++
186190

187191
== Tables with labels!

src/css/labels.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ span.label--labs {
234234
background: var(--color-labs);
235235
}
236236

237+
span.label--labs-label {
238+
background: var(--color-labs);
239+
color: rgba(var(--colors-neutral-10));
240+
}
241+
237242
span.label--graph-academy {
238243
background: var(--success-color);
239244
}

src/js/data/rolesData.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
"product": "Labs",
1111
"displayText": "Labs"
1212
},
13+
"labs-label":{
14+
"description": "Neo4j Labs project label",
15+
"labelCategory": "content",
16+
"product": "Labs",
17+
"displayText": "Labs"
18+
},
1319
"graph-academy":{
1420
"description": "Neo4j Graph Academy",
1521
"labelCategory": "content",

0 commit comments

Comments
 (0)