Skip to content

Commit 97e78f5

Browse files
Merge pull request #5128 from LianaHarris360/category-metedata-style
Apply grade_levels tags styling to category metadata tags
2 parents 2b9e620 + 9e8d536 commit 97e78f5

File tree

1 file changed

+11
-11
lines changed
  • contentcuration/contentcuration/frontend/channelEdit/components/ContentNodeListItem

1 file changed

+11
-11
lines changed

contentcuration/contentcuration/frontend/channelEdit/components/ContentNodeListItem/index.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,6 @@
9898
v-if="subtitle"
9999
class="text"
100100
>{{ subtitle }}</span>
101-
<span
102-
v-if="node.categories ? Object.keys(node.categories).length > 0 : null"
103-
class="text"
104-
>
105-
{{ category(node.categories) }}
106-
</span>
107101
<span v-if="isTopic && node.coach_count">
108102
<!-- for each learning activity -->
109103
<VTooltip
@@ -155,6 +149,16 @@
155149
{{ levels(key) }}
156150
</span>
157151
</span>
152+
<span v-if="node.categories">
153+
<span
154+
v-for="(key, index) in category(node.categories)"
155+
:key="index"
156+
class="small-chip"
157+
:style="{ backgroundColor: $themeTokens.fineLine }"
158+
>
159+
{{ key }}
160+
</span>
161+
</span>
158162
</span>
159163
</VListTileContent>
160164

@@ -356,7 +360,7 @@
356360
// is created here (unlike in ResourcePanel), because the values
357361
// are used to create one or more individual "chips" to display
358362
// rather than a string of text
359-
return ids.map(i => this.translateMetadataString(camelCase(i))).join(', ');
363+
return ids.map(i => this.translateMetadataString(camelCase(i)));
360364
},
361365
category(options) {
362366
const ids = Object.keys(options);
@@ -514,10 +518,6 @@
514518
justify-content: center;
515519
}
516520
517-
.metadata > span:not(:last-child)::after {
518-
content: '';
519-
}
520-
521521
.small-chip {
522522
display: inline-block;
523523
padding: 2px 4px;

0 commit comments

Comments
 (0)