Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove italics from address rendering in dashboard, change css classes to match convention
Rafał Pitoń60cfaecc6092
diff --git a/saleor/static/dashboard/scss/components/_global.scss b/saleor/static/dashboard/scss/components/_global.scssindex c73e1c2559..7a00e9623a 100644--- a/saleor/static/dashboard/scss/components/_global.scss+++ b/saleor/static/dashboard/scss/components/_global.scss@@ -85,7 +85,7 @@ h6 {}.formatted-address {- white-space: pre-wrap;+ font-style: normal;}.readonly-msg {diff --git a/saleor/static/dashboard/scss/document.scss b/saleor/static/dashboard/scss/document.scssindex dc01d70a17..639f8a90b8 100644--- a/saleor/static/dashboard/scss/document.scss+++ b/saleor/static/dashboard/scss/document.scss@@ -164,7 +164,7 @@ table {}.formatted-address {- white-space: pre-wrap;+ font-style: normal;}.currency {diff --git a/templates/dashboard/order/modal/ship_shipment_group.html b/templates/dashboard/order/modal/ship_shipment_group.htmlindex 4662a770f8..f6538182e0 100644--- a/templates/dashboard/order/modal/ship_shipment_group.html+++ b/templates/dashboard/order/modal/ship_shipment_group.html@@ -14,7 +14,7 @@{% block content %}{% trans "Dispatch this shipment to the following address:" context "Modal ship shipment group text" %}-{% format_address order.shipping_address %}+<div class="address">{% format_address order.shipping_address %}</div>{{ form|materializecss }}{% endblock %}diff --git a/templates/formatted_address.html b/templates/formatted_address.htmlindex bf5abfb74a..3ec52793f3 100644--- a/templates/formatted_address.html+++ b/templates/formatted_address.html@@ -1,3 +1,3 @@-<address class="address-formatted{% if inline %} address-inline{% endif %}">+<address class="formatted-address{% if inline %} inline-address{% endif %}">{% if inline %}{{ address_lines|join:', ' }}{% else %}{{ address_lines|join:'<br>' }}{% endif %}</address>\ No newline at end of filediff --git a/tests/test_userprofile.py b/tests/test_userprofile.pyindex d9daff7eb0..4bf82563cb 100644--- a/tests/test_userprofile.py+++ b/tests/test_userprofile.py@@ -145,7 +145,7 @@ def test_format_address(billing_address):'{% format_address address %}')rendered_html = tpl.render(context)assert address_html in rendered_html- assert 'address-inline' not in rendered_html+ assert 'inline-address' not in rendered_htmlassert str(billing_address.phone) in rendered_html@@ -159,5 +159,5 @@ def test_format_address_all_options(billing_address):'{% format_address address include_phone=False inline=True latin=True %}')rendered_html = tpl.render(context)assert address_html in rendered_html- assert 'address-inline' in rendered_html+ assert 'inline-address' in rendered_htmlassert str(billing_address.phone) not in rendered_html