This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Fix alignment issue with 'Add Coupon Code' button in WooCommerce Blocks (#9391) #9392
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Pull Request includes changes made to the style.css file located in \assets\js\base\components\sidebar-layout in order to fix an issue with the alignment of the "Add Coupon Code" button in the WooCommerce Blocks checkout page.
The changes involve removing the margin-left and margin-right properties for the .is-large .wc-block-components-sidebar .wc-block-components-totals-coupon-link class and adding the padding-left and padding-right properties for the .is-large .wc-block-components-sidebar .wc-block-components-totals-coupon class.
The reason for these changes is that the previous styling caused misalignment of the "Add Coupon Code" button when the text was too long. The updated CSS aligns the button properly with the other fields on the checkout page.
Fixes #9391
Accessibility
prefers-reduced-motion
Screenshots
Testing
User Facing Testing
/wp-admin/options-general.php
and selectDeutsch
as the site language./wp-admin/update-core.php
and fetch the available translations.WooCommerce Visibility
Performance Impact
Changelog