Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(storefront): BCTHEME-1710 Pre-Orded text in Polish looks cropped in the button on Product page #2414

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,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)

## 6.12.0 (07-06-2023)
- sync package lock file [#2373](https://github.com/bigcommerce/cornerstone/pull/2373)
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
Loading