Skip to content

Commit

Permalink
CCP-2395 Add more classnames to components
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbridge committed Mar 19, 2021
1 parent 8e79f5a commit c5f8dda
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libraries/ui-shared/CartTotalLine/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const CartTotalLine = ({ children, type, isDisabled }) => {
return (
<div
className={classNames(
'ui-shared__cart-total-line',
`ui-shared__cart-total-line ui-shared__cart-${type}-line`,
styles.line,
{
[styles.disabled]: isDisabled,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ exports[`<QuantityPicker /> Given editMode prop is handled correctly should blur
quantity={1}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand All @@ -34,6 +35,7 @@ exports[`<QuantityPicker /> Given editMode prop is handled correctly should focu
quantity={1}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand All @@ -60,6 +62,7 @@ exports[`<QuantityPicker /> Given onChange callback is triggered correctly shoul
quantity={2}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand Down Expand Up @@ -100,6 +103,7 @@ exports[`<QuantityPicker /> Given onChange callback is triggered correctly shoul
quantity={2}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand Down Expand Up @@ -147,6 +151,7 @@ exports[`<QuantityPicker /> Given onToggleEditMode callback is triggered correct
quantity={1}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand Down Expand Up @@ -187,6 +192,7 @@ exports[`<QuantityPicker /> Given onToggleEditMode callback is triggered correct
quantity={1}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand All @@ -213,6 +219,7 @@ exports[`<QuantityPicker /> should fall back to its default of 1, if 0 is suppli
quantity={0}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand All @@ -239,6 +246,7 @@ exports[`<QuantityPicker /> should fall back to the previous value when the last
quantity={124}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand All @@ -265,6 +273,7 @@ exports[`<QuantityPicker /> should have an amount of 1 by default 1`] = `
quantity={1}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand All @@ -291,6 +300,7 @@ exports[`<QuantityPicker /> should have an amount of 3 via prop 1`] = `
quantity={3}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand All @@ -317,6 +327,7 @@ exports[`<QuantityPicker /> should reset the amount to 1 if set to lower than 0
quantity={-1}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class QuantityPicker extends Component {
*/
render() {
return (
<form onSubmit={this.handleSubmitForm}>
<form onSubmit={this.handleSubmitForm} className="theme__cart__product__quantity-picker">
<input
ref={this.setRef}
type="number"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ exports[`<QuantityPicker /> Given editMode prop is handled correctly should blur
quantity={1}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand All @@ -34,6 +35,7 @@ exports[`<QuantityPicker /> Given editMode prop is handled correctly should focu
quantity={1}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand All @@ -60,6 +62,7 @@ exports[`<QuantityPicker /> Given onChange callback is triggered correctly shoul
quantity={2}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand Down Expand Up @@ -100,6 +103,7 @@ exports[`<QuantityPicker /> Given onChange callback is triggered correctly shoul
quantity={2}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand Down Expand Up @@ -147,6 +151,7 @@ exports[`<QuantityPicker /> Given onToggleEditMode callback is triggered correct
quantity={1}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand Down Expand Up @@ -187,6 +192,7 @@ exports[`<QuantityPicker /> Given onToggleEditMode callback is triggered correct
quantity={1}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand All @@ -213,6 +219,7 @@ exports[`<QuantityPicker /> should fall back to its default of 1, if 0 is suppli
quantity={0}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand All @@ -239,6 +246,7 @@ exports[`<QuantityPicker /> should fall back to the previous value when the last
quantity={124}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand All @@ -265,6 +273,7 @@ exports[`<QuantityPicker /> should have an amount of 1 by default 1`] = `
quantity={1}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand All @@ -291,6 +300,7 @@ exports[`<QuantityPicker /> should have an amount of 3 via prop 1`] = `
quantity={3}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand All @@ -317,6 +327,7 @@ exports[`<QuantityPicker /> should reset the amount to 1 if set to lower than 0
quantity={-1}
>
<form
className="theme__cart__product__quantity-picker"
onSubmit={[Function]}
>
<input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class QuantityPicker extends Component {
*/
render() {
return (
<form onSubmit={this.handleSubmitForm}>
<form onSubmit={this.handleSubmitForm} className="theme__cart__product__quantity-picker">
<input
ref={this.setRef}
type="number"
Expand Down

0 comments on commit c5f8dda

Please sign in to comment.