Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix radio select styles in variant picker
weronkada2cd2ab0f8f
diff --git a/saleor/static/js/components/variantPicker/AttributeSelectionWidget.js b/saleor/static/js/components/variantPicker/AttributeSelectionWidget.jsindex c0a8760de3..11a302d4cf 100644--- a/saleor/static/js/components/variantPicker/AttributeSelectionWidget.js+++ b/saleor/static/js/components/variantPicker/AttributeSelectionWidget.js@@ -17,8 +17,8 @@ export default class AttributeSelectionWidget extends Component {render() {const { attribute: { display, pk, values }, selected } = this.propsreturn (- <div className="form-group">- <label className="control-label">{display}</label>+ <div className="form-group product__variant-picker">+ <label className="control-label"><b>{display}</b></label><div className="radio">{values.map((value, i) => {return (diff --git a/saleor/static/scss/storefront/components/_product-page.scss b/saleor/static/scss/storefront/components/_product-page.scssindex b6cc9af319..75e94a6157 100644--- a/saleor/static/scss/storefront/components/_product-page.scss+++ b/saleor/static/scss/storefront/components/_product-page.scss@@ -3,7 +3,7 @@&__name {font-weight: 900;@include media-breakpoint-up(md) {- margin-bottom: $global-margin * 2;+ margin-bottom: $global-margin;}}&__price {@@ -11,6 +11,7 @@color: $gray;text-decoration: line-through;}+ margin-bottom: $global-margin * 2;}}&__gallery {@@ -40,4 +41,12 @@}}}+ &__variant-picker {+ .radio-inline {+ margin-right: $global-margin;+ span {+ margin-left: $global-margin / 2;+ }+ }+ }}diff --git a/templates/product/details.html b/templates/product/details.htmlindex 4e78350966..d7a39e571b 100644--- a/templates/product/details.html+++ b/templates/product/details.html@@ -88,8 +88,8 @@{% if is_visible and product.is_in_stock %}{% block orderform %}{% for attribute, value in product_attributes.items %}- <div className="form-group">- <label className="control-label">{{ attribute }}</label>+ <div class="form-group">+ <label class="control-label"><b>{{ attribute }}</b></label><p>{{ value }}</p></div>{% endfor %}