Skip to content

Commit

Permalink
feat: add "beta" label to libraries v2 content + item bank buttons (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
pomegranited authored Oct 22, 2024
1 parent e67acd4 commit 784b2b8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 17 additions & 1 deletion cms/static/sass/elements/_modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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%;
}
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions cms/templates/js/add-xblock-component-button.underscore
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 784b2b8

Please sign in to comment.