Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Use dashes instead of underscores in dashboard static images

Anna Siwik94dc398d8469
diff --git a/saleor/static/dashboard/images/account_circle.svg b/saleor/static/dashboard/images/account-circle.svg
similarity index 100%
rename from saleor/static/dashboard/images/account_circle.svg
rename to saleor/static/dashboard/images/account-circle.svg
diff --git a/saleor/static/dashboard/images/arrow_drop_down.svg b/saleor/static/dashboard/images/arrow-drop-down.svg
similarity index 100%
rename from saleor/static/dashboard/images/arrow_drop_down.svg
rename to saleor/static/dashboard/images/arrow-drop-down.svg
diff --git a/saleor/static/dashboard/images/arrow_left.svg b/saleor/static/dashboard/images/arrow-left.svg
similarity index 100%
rename from saleor/static/dashboard/images/arrow_left.svg
rename to saleor/static/dashboard/images/arrow-left.svg
diff --git a/saleor/static/dashboard/images/chevron_left.svg b/saleor/static/dashboard/images/chevron-left.svg
similarity index 100%
rename from saleor/static/dashboard/images/chevron_left.svg
rename to saleor/static/dashboard/images/chevron-left.svg
diff --git a/saleor/static/dashboard/images/chevron_right.svg b/saleor/static/dashboard/images/chevron-right.svg
similarity index 100%
rename from saleor/static/dashboard/images/chevron_right.svg
rename to saleor/static/dashboard/images/chevron-right.svg
diff --git a/saleor/static/dashboard/images/mobile_menu.svg b/saleor/static/dashboard/images/mobile-menu.svg
similarity index 100%
rename from saleor/static/dashboard/images/mobile_menu.svg
rename to saleor/static/dashboard/images/mobile-menu.svg
diff --git a/saleor/static/dashboard/images/more_vert.svg b/saleor/static/dashboard/images/more-vert.svg
similarity index 100%
rename from saleor/static/dashboard/images/more_vert.svg
rename to saleor/static/dashboard/images/more-vert.svg
diff --git a/saleor/static/dashboard/images/visibility_off.svg b/saleor/static/dashboard/images/visibility_off.svg
deleted file mode 100644
index 4c75f6fffe..0000000000
--- a/saleor/static/dashboard/images/visibility_off.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg fill="#616161" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
- <path d="M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z" fill="none"/>
- <path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"/>
-</svg>
\ No newline at end of file
diff --git a/saleor/static/dashboard/scss/components/_breadcrumbs.scss b/saleor/static/dashboard/scss/components/_breadcrumbs.scss
index 7da8e6cdc3..c67028d55a 100644
--- a/saleor/static/dashboard/scss/components/_breadcrumbs.scss
+++ b/saleor/static/dashboard/scss/components/_breadcrumbs.scss
@@ -14,7 +14,7 @@
&--history {
li {
&:before {
- content: url('../images/chevron_right.svg');
+ content: url('../images/chevron-right.svg');
vertical-align: text-bottom;
display: inline-block;
}
diff --git a/templates/dashboard/base.html b/templates/dashboard/base.html
index 33c096ab1c..3537003c78 100644
--- a/templates/dashboard/base.html
+++ b/templates/dashboard/base.html
@@ -52,7 +52,7 @@
</li>
</ul>
<a class="dropdown-button" data-constrainwidth="false" href="#" data-activates="user-action">
- <svg data-src="{% static "/dashboard/images/account_circle.svg" %}" width="24" height="24" fill="#fff" />
+ <svg data-src="{% static "/dashboard/images/account-circle.svg" %}" width="24" height="24" fill="#fff" />
</a>
{% if SEARCH_IS_ENABLED %}
<a href="{% url "dashboard:search" %}" class="dropdown-button hide-on-med-and-up" id="btn-search">
diff --git a/templates/dashboard/customer/detail.html b/templates/dashboard/customer/detail.html
index 5e91242d65..37f0fb6490 100644
--- a/templates/dashboard/customer/detail.html
+++ b/templates/dashboard/customer/detail.html
@@ -38,7 +38,7 @@
{% block header_extra %}
{% if customer.pk and not customer.is_staff and perms.userprofile.edit_staff and perms.userprofile.edit_user or perms.userprofile.impersonate_user %}
<a class="dropdown-button right" href="#" data-activates="context-menu" data-constrainwidth="false">
- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />
+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" />
</a>
<ul id="context-menu" class="dropdown-content">
{% if perms.userprofile.edit_user and perms.userprofile.edit_staff %}
diff --git a/templates/dashboard/discount/sale/form.html b/templates/dashboard/discount/sale/form.html
index e4fb03e252..13b36429e6 100644
--- a/templates/dashboard/discount/sale/form.html
+++ b/templates/dashboard/discount/sale/form.html
@@ -25,7 +25,7 @@
{% if sale.pk %}
<a class="dropdown-button right" href="#" data-activates="sale-delete"
data-constrainwidth="false">
- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />
+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" />
</a>
<ul id="sale-delete" class="dropdown-content">
<li>
diff --git a/templates/dashboard/discount/voucher/form.html b/templates/dashboard/discount/voucher/form.html
index 09be3dcfc3..aca3f2cff3 100644
--- a/templates/dashboard/discount/voucher/form.html
+++ b/templates/dashboard/discount/voucher/form.html
@@ -25,7 +25,7 @@
{% if voucher.pk %}
<a class="dropdown-button right" href="#" data-activates="voucher-delete"
data-constrainwidth="false">
- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />
+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" />
</a>
<ul id="voucher-delete" class="dropdown-content">
<li>
diff --git a/templates/dashboard/group/detail.html b/templates/dashboard/group/detail.html
index ee1d25c0ff..14fd8d7f5e 100644
--- a/templates/dashboard/group/detail.html
+++ b/templates/dashboard/group/detail.html
@@ -44,7 +44,7 @@
{% block header_extra %}
{% if group.pk %}
<a class="dropdown-button right" href="#" data-activates="context-menu" data-constrainwidth="false">
- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />
+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" />
</a>
<ul id="context-menu" class="dropdown-content">
{% if perms.userprofile.edit_group %}
diff --git a/templates/dashboard/includes/_pagination.html b/templates/dashboard/includes/_pagination.html
index d2089e5941..8bb4137acf 100644
--- a/templates/dashboard/includes/_pagination.html
+++ b/templates/dashboard/includes/_pagination.html
@@ -6,14 +6,14 @@
{% if page_obj.paginator.num_pages > 1 %}
<ul class="pagination">
{% if page_obj.has_previous %}
- <li><a href="?page=1"><svg data-src="{% static "dashboard/images/chevron_left.svg" %}" fill="#000" /></a></li>
+ <li><a href="?page=1"><svg data-src="{% static "dashboard/images/chevron-left.svg" %}" fill="#000" /></a></li>
{% if page_obj.number|add:previous_section >= 1 %}
<li><a href="{% construct_get_query page=page_obj.number|add:previous_section %}">&hellip;</a></li>
{% elif page_obj.number|add:previous_section < 1 and page_obj.number|add:n_backward >= 1 %}
<li><a href="?page=1">&hellip;</a></li>
{% endif %}
{% else %}
- <li class="disabled"><a href="#!"><svg data-src="{% static "dashboard/images/chevron_left.svg" %}" fill="#9E9E9E" /></a></li>
+ <li class="disabled"><a href="#!"><svg data-src="{% static "dashboard/images/chevron-left.svg" %}" fill="#9E9E9E" /></a></li>
{% endif %}
{% for page in page_obj.paginator.page_range %}
@@ -30,9 +30,9 @@
{% elif page_obj.number|add:next_section > page_obj.paginator.num_pages and page_obj.number|add:n_forward <= page_obj.paginator.num_pages %}
<li><a href="{% construct_get_query page=page_obj.paginator.num_pages %}">&hellip;</a></li>
{% endif %}
- <li><a href="{% construct_get_query page=page_obj.paginator.num_pages %}"><svg data-src="{% static "dashboard/images/chevron_right.svg" %}" fill="#000" /></a></li>
+ <li><a href="{% construct_get_query page=page_obj.paginator.num_pages %}"><svg data-src="{% static "dashboard/images/chevron-right.svg" %}" fill="#000" /></a></li>
{% else %}
- <li class="disabled"><a href="#!"><svg data-src="{% static "dashboard/images/chevron_right.svg" %}" fill="#9E9E9E" /></a></li>
+ <li class="disabled"><a href="#!"><svg data-src="{% static "dashboard/images/chevron-right.svg" %}" fill="#9E9E9E" /></a></li>
{% endif %}
</li>
</ul>
diff --git a/templates/dashboard/order/detail.html b/templates/dashboard/order/detail.html
index 3a35ddc88f..9ee2ab0390 100644
--- a/templates/dashboard/order/detail.html
+++ b/templates/dashboard/order/detail.html
@@ -22,7 +22,7 @@
{% block header_extra %}
<a class="dropdown-button right" href="#" data-activates="context-menu" data-constrainwidth="false">
- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />
+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" />
</a>
<ul id="context-menu" class="dropdown-content">
{% if perms.order.edit_order %}
@@ -300,7 +300,7 @@
{% if group.can_edit_lines %}
<a class="dropdown-button" href="#" data-activates="line-actions-{{ line.pk }}" data-constrainwidth="false">
{{ line.quantity }} {% if line.stock_location %} ({{ line.stock_location|truncatechars:10 }}) {% endif %}
- <svg data-src="{% static "dashboard/images/arrow_drop_down.svg" %}" width="24" height="24" />
+ <svg data-src="{% static "dashboard/images/arrow-drop-down.svg" %}" width="24" height="24" />
</a>
<ul id="line-actions-{{ line.pk }}" class="dropdown-content">
<li>
@@ -413,7 +413,7 @@
{% blocktrans trimmed with voucher=order.discount_name context "Order totals header" %}
Voucher {{ voucher }}
{% endblocktrans %}
- <svg data-src="{% static "dashboard/images/arrow_drop_down.svg" %}" />
+ <svg data-src="{% static "dashboard/images/arrow-drop-down.svg" %}" />
</a>
<ul id="voucher-actions" class="dropdown-content">
<li>
diff --git a/templates/dashboard/product/product_class/form.html b/templates/dashboard/product/product_class/form.html
index 05d7a7d28d..6aa125de30 100644
--- a/templates/dashboard/product/product_class/form.html
+++ b/templates/dashboard/product/product_class/form.html
@@ -49,7 +49,7 @@
{% block header_extra %}
{% if product_class.pk %}
<a class="dropdown-button right" href="#" data-activates="context-menu" data-constrainwidth="false">
- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />
+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" />
</a>
<ul id="context-menu" class="dropdown-content">
{% if perms.product.edit_properties %}
diff --git a/templates/dashboard/product/product_variant/form.html b/templates/dashboard/product/product_variant/form.html
index 934445a546..3cd8c5d873 100644
--- a/templates/dashboard/product/product_variant/form.html
+++ b/templates/dashboard/product/product_variant/form.html
@@ -28,7 +28,7 @@
</li>
<li class="back-mobile">
<a href="{% url "dashboard:product-detail" pk=product.pk %}">
- <svg data-src="{% static "dashboard/images/chevron_left.svg" %}" />
+ <svg data-src="{% static "dashboard/images/chevron-left.svg" %}" />
</a>
</li>
<li>
diff --git a/templates/dashboard/product/stock/form.html b/templates/dashboard/product/stock/form.html
index 1c8eb3005c..5f34696c87 100644
--- a/templates/dashboard/product/stock/form.html
+++ b/templates/dashboard/product/stock/form.html
@@ -32,7 +32,7 @@
</li>
<li class="back-mobile">
<a href="{% url "dashboard:product-detail" pk=product.pk %}">
- <svg data-src="{% static "dashboard/images/chevron_left.svg" %}" />
+ <svg data-src="{% static "dashboard/images/chevron-left.svg" %}" />
</a>
</li>
<li>
diff --git a/templates/dashboard/product/stock_location/form.html b/templates/dashboard/product/stock_location/form.html
index 3a47fc44a5..2d70440eac 100644
--- a/templates/dashboard/product/stock_location/form.html
+++ b/templates/dashboard/product/stock_location/form.html
@@ -18,7 +18,7 @@
{% block header_extra %}
{% if location.pk %}
<a class="dropdown-button right" href="#" data-activates="attribute-delete" data-constrainwidth="false">
- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />
+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" />
</a>
<ul id="attribute-delete" class="dropdown-content">
<li>
diff --git a/templates/dashboard/staff/detail.html b/templates/dashboard/staff/detail.html
index 6f46decbf5..9baa367484 100644
--- a/templates/dashboard/staff/detail.html
+++ b/templates/dashboard/staff/detail.html
@@ -40,7 +40,7 @@
{% block header_extra %}
{% if user != staff_member and staff_member.pk %}
<a class="dropdown-button right" href="#" data-activates="context-menu" data-constrainwidth="false">
- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />
+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" />
</a>
<ul id="context-menu" class="dropdown-content">
{% if perms.userprofile.edit_staff %}
diff --git a/templates/dashboard/styleguide/index.html b/templates/dashboard/styleguide/index.html
index 4c2eef1a47..52198ad0c3 100644
--- a/templates/dashboard/styleguide/index.html
+++ b/templates/dashboard/styleguide/index.html
@@ -450,12 +450,12 @@
Used icons
</h4>
<svg data-src="{% static "dashboard/images/add.svg" %}" />
- <svg data-src="{% static "dashboard/images/account_circle.svg" %}" />
+ <svg data-src="{% static "dashboard/images/account-circle.svg" %}" />
<svg data-src="{% static "dashboard/images/search.svg" %}" />
<svg data-src="{% static "dashboard/images/mobile-menu.svg" %}" />
- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />
+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" />
<svg data-src="{% static "dashboard/images/arrow-left.svg" %}" />
- <svg data-src="{% static "dashboard/images/chevron_right.svg" %}" fill="#000" />
+ <svg data-src="{% static "dashboard/images/chevron-right.svg" %}" fill="#000" />
<svg data-src="{% static "dashboard/images/edit.svg" %}" fill="#000" width="24px" height="24px" />
<svg data-src="{% static "dashboard/images/style.svg" %}" fill="#000" width="24px" height="24px" />
<svg data-src="{% static "dashboard/images/store.svg" %}" fill="#000" width="24px" height="24px" />
@@ -463,7 +463,7 @@
<svg data-src="{% static "dashboard/images/description.svg" %}" fill="#000" width="24px" height="24px" />
<svg data-src="{% static "dashboard/images/description.svg" %}" fill="#000" width="24px" height="24px" />
<svg data-src="{% static "dashboard/images/history.svg" %}" fill="#000" width="24px" height="24px" />
- <svg data-src="{% static "dashboard/images/arrow_drop_down.svg" %}" fill="#000" width="24px" height="24px" />
+ <svg data-src="{% static "dashboard/images/arrow-drop-down.svg" %}" fill="#000" width="24px" height="24px" />
</div>
<div class="section">
<h4>
@@ -1489,7 +1489,7 @@
<div class="section">
<h4>Icon</h4>
<a class="dropdown-button" href="#" data-activates="dropdown1">
- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />
+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" />
</a>
</div>
<ul id="dropdown1" class="dropdown-content">
@@ -1529,7 +1529,7 @@
<div class="section">
<h4>Dropdown</h4>
<a class='dropdown-button' href='#' data-activates='dropdown2'>
- <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />
+ <svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" />
</a>
<ul id='dropdown2' class='dropdown-content'>
<li>
@@ -1577,7 +1577,7 @@
<ul class="pagination">
<li class="disabled">
<a href="#!">
- <svg data-src="{% static "dashboard/images/chevron_left.svg" %}" />
+ <svg data-src="{% static "dashboard/images/chevron-left.svg" %}" />
</a>
</li>
<li class="active">
@@ -1607,7 +1607,7 @@
</li>
<li>
<a href="">
- <svg data-src="{% static "dashboard/images/chevron_right.svg" %}" fill="#000" />
+ <svg data-src="{% static "dashboard/images/chevron-right.svg" %}" fill="#000" />
</a>
</li>
</ul>