Skip to content

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

Fix order dispatch modal

dominik-zeglen2031c7e7b904
diff --git a/saleor/static/dashboard/js/components/modal.js b/saleor/static/dashboard/js/components/modal.js
index 6254728217..5d15fb506f 100644
--- a/saleor/static/dashboard/js/components/modal.js
+++ b/saleor/static/dashboard/js/components/modal.js
@@ -1,4 +1,5 @@
import {initSelects} from './utils';
+import SVGInjector from 'svg-injector-2';
export default $(document).ready((e) => {
$('body').on('click', '.modal-trigger-custom', function (e) {
@@ -18,6 +19,7 @@ export default $(document).ready((e) => {
$('input#' + id).prop('checked', !checkbox);
$(e.target).toggleClass('checked', !checkbox);
});
+ new SVGInjector().inject(document.querySelectorAll('.modal-content svg[data-src]:not(.injected-svg)'));
}
});
diff --git a/saleor/static/dashboard/scss/components/_global.scss b/saleor/static/dashboard/scss/components/_global.scss
index cd61dfc9f1..5bfe904a0b 100644
--- a/saleor/static/dashboard/scss/components/_global.scss
+++ b/saleor/static/dashboard/scss/components/_global.scss
@@ -137,3 +137,11 @@ li#version-indicator {
}
}
}
+
+.address {
+ margin-bottom: 1rem;
+ .phone-number {
+ margin-left: .5rem;
+ color: unset;
+ }
+}
diff --git a/saleor/static/dashboard/scss/components/_nav.scss b/saleor/static/dashboard/scss/components/_nav.scss
index ba4e27d224..184767cdd5 100644
--- a/saleor/static/dashboard/scss/components/_nav.scss
+++ b/saleor/static/dashboard/scss/components/_nav.scss
@@ -23,6 +23,9 @@ header {
transition: background-color .2s ease-out;
width: 100%;
line-height: 1;
+ &::placeholder {
+ color: white;
+ }
&:hover {
background-color: rgba(255, 255, 255, .25);
}
diff --git a/saleor/static/dashboard/scss/variables.scss b/saleor/static/dashboard/scss/variables.scss
index acc1ae995a..1ceea4588d 100644
--- a/saleor/static/dashboard/scss/variables.scss
+++ b/saleor/static/dashboard/scss/variables.scss
@@ -20,8 +20,7 @@ $error-color: #F44336;
$link-color: #039BE5;
$grey-color: #9E9E9E;
$sidenav-font-color: #616161;
-$placeholder-text-color: white;
-$body-bg: #f5f5f5;
+$placeholder-text-color: lighten($off-black, 75%);
/*** PADDINGS ***/
@@ -46,10 +45,4 @@ $h4-fontsize: 1.3rem !default;
$h5-fontsize: 1.2rem !default;
$h6-fontsize: 1rem !default;
-/*** Timeline Configuration ***/
-$timeline-width: 3px !default;
-$timeline-circle-radius: 6px !default;
-$timeline-event-margin: 1rem !default;
-$timeline-date-width: 20rem;
-$timeline-status-width: 12rem;
diff --git a/templates/dashboard/includes/_address.html b/templates/dashboard/includes/_address.html
index 71c0e8b6e3..d9c55335e8 100644
--- a/templates/dashboard/includes/_address.html
+++ b/templates/dashboard/includes/_address.html
@@ -5,8 +5,8 @@
<div class="formatted-address">{% format_address address latin=True %}</div>
{% if address.phone %}
<div>
- <svg data-src="{% static "dashboard/images/phone.svg" %}" width="14" height="14" />
- <a href="tel:{{ address.phone }}">
+ <svg data-src="{% static "dashboard/images/phone.svg" %}" width="16" height="16" class="left" />
+ <a href="tel:{{ address.phone }}" class="phone-number">
{{ address.phone }}
</a>
</div>