From 05ff94a9935756fefbf6b751800cf97b419f7432 Mon Sep 17 00:00:00 2001 From: Julia Eskew Date: Fri, 10 Dec 2021 17:19:03 -0500 Subject: [PATCH] feat: Change the text of the Studio button to add an HTML component to read "Text" and display a text icon instead of a "" icon. --- cms/djangoapps/contentstore/views/component.py | 2 +- cms/static/images/large-text-icon.png | Bin 0 -> 304 bytes cms/static/sass/assets/_graphics.scss | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 cms/static/images/large-text-icon.png diff --git a/cms/djangoapps/contentstore/views/component.py b/cms/djangoapps/contentstore/views/component.py index 0202a678e4..4b0d00f9f8 100644 --- a/cms/djangoapps/contentstore/views/component.py +++ b/cms/djangoapps/contentstore/views/component.py @@ -275,7 +275,7 @@ def get_component_templates(courselike, library=False): # lint-amnesty, pylint: component_display_names = { 'discussion': _("Discussion"), - 'html': _("HTML"), + 'html': _("Text"), 'problem': _("Problem"), 'video': _("Video"), 'openassessment': _("Open Response") diff --git a/cms/static/images/large-text-icon.png b/cms/static/images/large-text-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..003ba1d3b1e8babeb8a4855f86eedb82f9c79e0f GIT binary patch literal 304 zcmeAS@N?(olHy`uVBq!ia0vp^IzX((!3HGv%U7lYDb50q$YKTtZeb8+WSBKa0w~B> z9OUlAu^OGFcFWKGEhY~YeqLsBZRt3%D9rF!#nf$Xp?f`B z-@5$O$lZHk6;pmnqQs5cSETMqZk2mG?@Monda~aHue5|WFVa`G39DTHyY1PQ4ZBng zrS~0>>+e3(u-;@!R$k*mXKRmSn`?UvKk%EKa~6JKm)^!Vv(UBX@I8qe(#+M#3Hdy4 ye3vr4+f#c<^g}xDu^;cJZvLIlCwTExEkoTC`6r(Wv^D@e#Ng@b=d#Wzp$Pz-k#>Fn literal 0 HcmV?d00001 diff --git a/cms/static/sass/assets/_graphics.scss b/cms/static/sass/assets/_graphics.scss index e4642724ca..881445f0d8 100644 --- a/cms/static/sass/assets/_graphics.scss +++ b/cms/static/sass/assets/_graphics.scss @@ -29,7 +29,7 @@ display: inline-block; width: ($baseline*3); height: ($baseline*3); - background: url('#{$static-path}/images/large-html-icon.png') center no-repeat; + background: url('#{$static-path}/images/large-text-icon.png') center no-repeat; } .large-problem-icon {