opr
a7461de3b3
Hide spinner on cart block's "Proceed to Checkout" link when page unloads ( https://github.com/woocommerce/woocommerce-blocks/pull/3436 )
...
* Hide spinner on cart's "proceed to checkout" button when page unloads
This is required because of a feature of Safari where the page state is saved, including all class names, when a transition occurs. Navigating using the back button restores the page to that cached state, so the spinner class remains on the button. Resetting the state just before the page gets cached stops this from happening.
* Change comment case to sentence case.
2020-11-23 13:20:04 +00:00
Albert Juhé Lluveras
10ceda5851
Use @wordpress/base-styles and @automattic/color-studio as a base for our styles ( https://github.com/woocommerce/woocommerce-blocks/pull/3300 )
...
* Use colors variables instead of hardcoded values when possible
* Update WC colors from @automattic/color-studio
* Decrease specificity of price-slider CSS selectors
* Update colors to WC purple
* Update bright colors
* Update grays
* Update blacks and whites
* Add @todo comment
* Remove unnecessary blank line
* Remove purple color from price slider handle
* Fix colors not shown in SVG background
* Remove unnecessary box-shadow declaration
* Add theming docs
* Refactor/remove SCSS variables
* Add @todo comment to breakpoints
* Update package-lock.json
2020-10-22 12:40:32 +02:00
Darren Ethier
9115160c2f
Enable and fix all jsdoc rule violations ( https://github.com/woocommerce/woocommerce-blocks/pull/3168 )
...
* add param jsdocs to satisfy jsdoc require-param rule
* Fix jsdoc-checktypes rule violations
* fix jsdoc/require-param-type rule violations
* fix jsdoc/check-param-names violations
* fix jsdoc/require-property-description rule violations
* fix rule violations for jsdoc/valid-types rule
* fix rule violations for jsdoc/require-property rule
* fix jsdoc/no-undefined-types rule violations
* fix jsdoc/check-types rule violations
* fix jsdoc/require-returns-description rule violation
* enable jsdoc/require-returns-type rule
* fix jsdoc/newline-after-description rule violations
2020-09-20 19:54:08 -04:00
Albert Juhé Lluveras
8bb217cec6
Show express payment methods in the Cart block ( https://github.com/woocommerce/woocommerce-blocks/pull/3004 )
...
* Shown express payment methods in Cart block
* Fixes
* Create usePositionRelativeToViewport hook
* Typo
* Style fixes
* Remove footer push div
* Styling fixes
* Improve code clarity
* Split ExpressCheckoutFormControl into two components
* Rename visibilityObserver to referenceElement
* Replace 'useEffect' with 'useLayoutEffect'
* Add tests for usePositionRelativeToViewport
* Self-closing div
* Add explanatory comment
* Create a shim for IntersectionObserver
* Update express payment components class names
* Add todo comment to remove IntersectionObserver shim when we drop IE11 support
2020-08-20 16:14:12 +02:00
Mike Jolley
d25d233f27
Replace usage of `cart-checkout/button` with `@woocommerce/base-components/button` ( https://github.com/woocommerce/woocommerce-blocks/pull/2781 )
...
* Change to base component
* Remove todo
2020-06-25 16:50:48 +01:00
Mike Jolley
24035a1508
Update Stripe Method to display generic icon and text in label, with cards below ( https://github.com/woocommerce/woocommerce-blocks/pull/2466 )
...
* Support card alignment as a prop
* Add generic card icon to stripe
* Add icons to stripe content
* Update styles
* Label element with icon whitelist
* Update assets/js/base/components/payment-methods/payment-methods.js
Co-authored-by: Darren Ethier <darren@roughsmootheng.in>
* Remove activePaymentMethod
* Remove spread operator
Co-authored-by: Darren Ethier <darren@roughsmootheng.in>
2020-05-13 16:48:03 +01:00
Mike Jolley
95809b30bb
Update payment method config to include icons ( https://github.com/woocommerce/woocommerce-blocks/pull/2267 )
...
* Remove strong and cleanup existing configs
* Fix TS validation for blocks-registry
* Allow label to be string
* Split up button and icons for cart
* Make icons and payment methods available on cart page
* Fix payment method enqueuing
* Icon normalization and Stripe implementation
* PayPal Icon
* adjust spacing
* Fix string handling
* Remove paypal icon config
* Check for an object before creating icon
* Add payment icons to Stripe label
* Update common-icons.js
* Update Cart.php
* Update jest.config.json
2020-04-29 11:57:58 +01:00