Albert Juhé Lluveras
0f43c3af0f
Remove classes from dashicons ( https://github.com/woocommerce/woocommerce-blocks/pull/2848 )
2020-07-10 14:20:57 -04:00
Albert Juhé Lluveras
8c06276b00
Unify Chip styles ( https://github.com/woocommerce/woocommerce-blocks/pull/2765 )
...
* Improve cross character used in dropdown selector
* Add is-open and has-checked classes to dropdown selector so we stop relying on complex pseudoselector combinations
* Update Chip component with new props
* Update Chip styles
* Update dropdown selector selected chip with the Chip component
* Update active filters chip with the Chip component
* Style fixes
* Update snapshots and add tests
* Change onRemove prop signature
* Fix wrong bottom margin
* Fix misaligned remove icon
* Update assets/js/base/components/chip/index.js
Co-authored-by: Darren Ethier <darren@roughsmootheng.in>
* Update assets/js/base/components/chip/index.js
Co-authored-by: Darren Ethier <darren@roughsmootheng.in>
* Add missing default prop
* Prettier
* Ensure showScreenReaderText is a bool
* Rename removeOnClick with removeOnAnyClick
* Update snapshots
* Fix Chip aria-label logic
* Split Chip and RemovableChip
* Replace chip close character with an icon
* Fix outdated comment
Co-authored-by: Darren Ethier <darren@roughsmootheng.in>
2020-07-10 11:09:49 +02:00
Mike Jolley
d4e843fd65
Update snapshot to fix broken tests
2020-02-27 11:53:12 +00:00
Mike Jolley
6ac5b8288f
Add chip component for coupons in the cart ( https://github.com/woocommerce/woocommerce-blocks/pull/1807 )
...
* Chip componet and styling
* Tests
* Move coupon code for API requests to body - fixes issues with coupon codes containing special characters
* Implement chip component in cart page
* Revert "Move coupon code for API requests to body - fixes issues with coupon codes containing special characters"
This reverts commit ac5a72f55d51d939bb989f3936e28cf993af19a6.
* Update comment
* prevent overflow
* Add screen reader text for coupon name
* Adjust icon alignment and padding/hit box
* update string
2020-02-26 17:09:18 +00:00