Skip to content

Commit

Permalink
fix(storefront): BCTHEME-1710 Pre-Orded text in Polish looks cropped …
Browse files Browse the repository at this point in the history
…in the button on Product page (#2414)
  • Loading branch information
bc-yevhenii-buliuk authored Jan 8, 2024
1 parent a9b47cd commit 53e5b5e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Change case of Page builder menu item text [#2407](https://github.com/bigcommerce/cornerstone/pull/2407)
- Corrected typo with the word default previously deafault in config.json [#2410](https://github.com/bigcommerce/cornerstone/pull/2410)
- Adding autocomplete to common input fields [2397](https://github.com/bigcommerce/cornerstone/pull/2397)
- Pre-Orded text in Polish looks cropped in the button on Product page [2414](https://github.com/bigcommerce/cornerstone/pull/2414)
- Use triple sash on customer's company name to prevent escaping ampersands [#2399](https://github.com/bigcommerce/cornerstone/pull/2399)
- Adding aria attributes to cart page coupon code and gift cert buttons [#2391](https://github.com/bigcommerce/cornerstone/pull/2391)

Expand Down
18 changes: 18 additions & 0 deletions assets/scss/components/stencil/productView/_productView.scss
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,24 @@
width: 50%;
}

&.pre-order-buttons {
@include breakpoint("small") {
min-width: 50%;
width: auto;
}

@include breakpoint("medium") {
margin-right: remCalc(11px);
min-width: auto;
padding: 0;
width: auto;
}

.button {
padding: remCalc(13px) remCalc(24px);
}
}

.button {
margin: 0;
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion templates/components/products/add-to-cart.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<p class="alertBox-column alertBox-message"></p>
</div>
{{#or customer (unless settings.hide_price_from_guests)}}
<div class="add-to-cart-buttons">
<div class="add-to-cart-buttons {{#if product.pre_order}}pre-order-buttons{{/if}}">
<div class="form-action">
<input
id="form-action-addToCart"
Expand Down

0 comments on commit 53e5b5e

Please sign in to comment.