Merged in feat/SW-3477-hide-voucher-booking-code-sas- (pull request #2836)

feat(SW-3477) Updated booking widget for SAS white label

Approved-by: Anton Gunnarsson
This commit is contained in:
Hrishikesh Vaipurkar
2025-09-23 08:44:55 +00:00
parent 046d342b6f
commit 16e6c1596c
21 changed files with 173 additions and 79 deletions

View File

@@ -27,6 +27,11 @@ const meta: Meta<typeof IconButton> = {
type: 'string',
description: `The style variant is only applied on certain variants. The examples below shows the possible combinations of variants and style variants.`,
},
wrapping: {
control: 'select',
options: Object.keys(config.variants.wrapping),
default: undefined,
},
},
}

View File

@@ -8,11 +8,13 @@ export function IconButton({
theme,
style,
className,
wrapping,
...props
}: IconButtonProps) {
const classNames = variants({
theme,
style,
wrapping,
className,
})

View File

@@ -100,3 +100,7 @@
background-color: var(--Component-Button-Muted-Fill-Disabled-inverted);
}
}
.no-wrapping {
padding: 0;
}

View File

@@ -33,6 +33,10 @@ export const config = {
[variantKeys.style.Elevated]: '',
[variantKeys.style.Faded]: '',
},
wrapping: {
true: styles['no-wrapping'],
false: undefined,
},
},
compoundVariants: [
// Primary should only use Normal