feat: add "beta" label to libraries v2 content + item bank buttons (#35690)

This commit is contained in:
Jillian
2024-10-23 02:48:45 +10:30
committed by GitHub
parent e67acd459f
commit 784b2b8c3c
2 changed files with 20 additions and 1 deletions

View File

@@ -140,12 +140,13 @@
position: relative;
display: inline-block;
width: ($baseline*6.25);
height: ($baseline*5);
height: ($baseline*7);
margin-bottom: ($baseline/2);
box-shadow: 0 1px 1px $shadow, 0 1px 0 rgba(255, 255, 255, 0.4) inset;
border-radius: ($baseline/4);
padding: 0;
text-align: center;
vertical-align: top;
@extend %btn-primary-green;
@@ -154,6 +155,21 @@
display: block;
color: $white;
}
.beta {
margin-top: 3px;
margin-bottom: -20px;
padding: 4px;
display: inline-block;
color: $uxpl-green-base;
background-color: theme-color("inverse");
border-color: theme-color("inverse");
border-radius: 3px;
font-size: 90%;
line-height: 90%;
}
}
}
}

View File

@@ -6,4 +6,7 @@
<span class="large-template-icon large-<%- type %>-icon"></span>
<span class="sr"> <%- gettext("Add Component:") %></span>
<span class="name"><%- display_name %></span>
<% if (type === 'library_v2' || type === 'itembank') { %>
<span class="beta"><%- gettext("Beta") %></span>
<% } %>
</button>