Merged in fix/BOOK-293-button-variants (pull request #3371)
fix(BOOK-293): changed variants and props on IconButton component * fix(BOOK-293): changed variants and props on IconButton component * fix(BOOK-293): inherit color for icon Approved-by: Bianca Widstam Approved-by: Christel Westerberg
This commit is contained in:
committed by
Bianca Widstam
parent
2197ab2137
commit
3f632e6031
@@ -64,7 +64,7 @@ export default function SelectDeliveryTime() {
|
||||
<Button
|
||||
wrapping={false}
|
||||
variant="Text"
|
||||
size="Small"
|
||||
size="sm"
|
||||
color="Primary"
|
||||
className={styles.changeButton}
|
||||
onPress={() => setShowChangeTime(true)}
|
||||
|
||||
@@ -73,7 +73,7 @@ export default function DeliveryMethodStep() {
|
||||
<Button
|
||||
wrapping={false}
|
||||
variant="Text"
|
||||
size="Small"
|
||||
size="sm"
|
||||
color="Primary"
|
||||
className={styles.requestButton}
|
||||
onPress={() => setShowSpecialRequests(true)}
|
||||
|
||||
@@ -185,8 +185,7 @@ export default function Summary({ onSubmit }: { onSubmit: () => void }) {
|
||||
{isConfirmation && (
|
||||
<Button
|
||||
type="button"
|
||||
typography="Body/Supporting text (caption)/smBold"
|
||||
size="Small"
|
||||
size="sm"
|
||||
variant="Text"
|
||||
onPress={togglePriceDetails}
|
||||
className={styles.priceButton}
|
||||
@@ -209,10 +208,9 @@ export default function Summary({ onSubmit }: { onSubmit: () => void }) {
|
||||
|
||||
<div className={styles.buttons}>
|
||||
<Button
|
||||
typography="Body/Supporting text (caption)/smBold"
|
||||
type="button"
|
||||
variant="Text"
|
||||
size="Medium"
|
||||
size="sm"
|
||||
color="Primary"
|
||||
wrapping={false}
|
||||
onPress={prevStep}
|
||||
@@ -220,11 +218,8 @@ export default function Summary({ onSubmit }: { onSubmit: () => void }) {
|
||||
{secondaryButtonLabel}
|
||||
</Button>
|
||||
<Button
|
||||
typography="Body/Supporting text (caption)/smBold"
|
||||
size="Medium"
|
||||
isDisabled={
|
||||
isSubmitting || (isConfirmation && !!Object.keys(errors).length)
|
||||
}
|
||||
size="sm"
|
||||
isDisabled={isSubmitting}
|
||||
isPending={isSubmitting}
|
||||
onPress={handleNextStep}
|
||||
variant={isSingleItem || isConfirmation ? "Primary" : "Secondary"}
|
||||
|
||||
Reference in New Issue
Block a user