Skip to content

Commit

Permalink
ENGCOM-4475: Fix #21648 Checkout Agreements checkbox missing asterisk #…
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaschenko authored Mar 16, 2019
2 parents 104d9b3 + 4d90bc3 commit db0d304
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
*/
-->
<div data-role="checkout-agreements">
<div class="checkout-agreements" data-bind="visible: isVisible">
<div class="checkout-agreements fieldset" data-bind="visible: isVisible">
<!-- ko foreach: agreements -->
<!-- ko if: ($parent.isAgreementRequired($data)) -->
<div class="checkout-agreement required">
<div class="checkout-agreement field choice required">
<input type="checkbox" class="required-entry"
data-bind="attr: {
'id': $parent.getCheckboxId($parentContext, agreementId),
'name': 'agreement[' + agreementId + ']',
'value': agreementId
}"/>
<label data-bind="attr: {'for': $parent.getCheckboxId($parentContext, agreementId)}">
<label class="label" data-bind="attr: {'for': $parent.getCheckboxId($parentContext, agreementId)}">
<button type="button"
class="action action-show"
data-bind="click: function(data, event) { return $parent.showContent(data, event) }"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,31 +55,3 @@
}
}
}

//
// Desktop
// _____________________________________________

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
// ToDo UI: remove with global blank theme .field.required update
.opc-wrapper {
.fieldset {
> .field {
&.required,
&._required {
position: relative;

> label {
padding-right: 25px;

&:after {
margin-left: @indent__s;
position: absolute;
top: 9px;
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,13 @@
.fieldset {
> .field {
margin: 0 0 @indent__base;

&.choice {
&:before {
padding: 0;
width: 0;
}
}

&.type {
.control {
Expand Down

0 comments on commit db0d304

Please sign in to comment.