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
@@ -13,9 +13,9 @@ import { trpc } from "@scandic-hotels/trpc/client"
|
||||
|
||||
import { useUpdateProfilingConsent } from "@/hooks/useUpdateProfilingConsent"
|
||||
import {
|
||||
setDismissed as persistDismissed,
|
||||
profilingConsentOpenEvent,
|
||||
readDismissed,
|
||||
setDismissed as persistDismissed,
|
||||
} from "@/utils/profilingConsent"
|
||||
import { trackConsentAction } from "@/utils/tracking/profilingConsent"
|
||||
|
||||
@@ -159,10 +159,10 @@ export default function ProfilingConsentModal({
|
||||
<Button
|
||||
type="button"
|
||||
variant="Text"
|
||||
size="Large"
|
||||
size="lg"
|
||||
color="Primary"
|
||||
className={styles.closeBtn}
|
||||
onClick={() => {
|
||||
onPress={() => {
|
||||
trackConsentAction({ position: "modal", name: "close" })
|
||||
onClose()
|
||||
}}
|
||||
@@ -216,12 +216,11 @@ export default function ProfilingConsentModal({
|
||||
<Button
|
||||
variant="Primary"
|
||||
color="Primary"
|
||||
size="Large"
|
||||
typography="Body/Supporting text (caption)/smRegular"
|
||||
size="lg"
|
||||
type="button"
|
||||
isDisabled={isLoading}
|
||||
isPending={isLoading && activeChoice === true}
|
||||
onClick={() => {
|
||||
onPress={() => {
|
||||
trackConsentAction({
|
||||
position: "modal",
|
||||
name: "accept personalization",
|
||||
@@ -236,13 +235,12 @@ export default function ProfilingConsentModal({
|
||||
</Button>
|
||||
<Button
|
||||
variant="Secondary"
|
||||
size="Large"
|
||||
size="lg"
|
||||
color="Primary"
|
||||
typography="Body/Supporting text (caption)/smRegular"
|
||||
type="button"
|
||||
isDisabled={isLoading}
|
||||
isPending={isLoading && activeChoice === false}
|
||||
onClick={() => {
|
||||
onPress={() => {
|
||||
trackConsentAction({ position: "modal", name: "decline" })
|
||||
handleConsentClick(false)
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user