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
@@ -21,8 +21,7 @@ export function CookieConsentButton() {
|
||||
return (
|
||||
<Button
|
||||
variant="Text"
|
||||
size="Medium"
|
||||
typography="Body/Paragraph/mdBold"
|
||||
size="md"
|
||||
wrapping={false}
|
||||
onPress={handleClick}
|
||||
className={styles.cookieConsentButton}
|
||||
|
||||
@@ -21,10 +21,9 @@ export function UsePointsButton({ variant, onPress }: ButtonProps) {
|
||||
|
||||
return (
|
||||
<Button
|
||||
size="Medium"
|
||||
size="md"
|
||||
className={buttonClassName}
|
||||
variant={buttonVariant}
|
||||
typography="Body/Paragraph/mdBold"
|
||||
onPress={onPress}
|
||||
>
|
||||
{intl.formatMessage({
|
||||
|
||||
@@ -43,7 +43,6 @@ export default async function Overview({
|
||||
className={styles.teamMemberCardButton}
|
||||
variant="Tertiary"
|
||||
color="Primary"
|
||||
typography="Body/Paragraph/mdBold"
|
||||
>
|
||||
<>
|
||||
<MaterialIcon icon="id_card" size={24} color="CurrentColor" />
|
||||
|
||||
@@ -30,8 +30,7 @@ export default function ClaimPoints() {
|
||||
href={missingPoints[lang]}
|
||||
variant="Text"
|
||||
target="_blank"
|
||||
size="Small"
|
||||
typography="Body/Supporting text (caption)/smBold"
|
||||
size="sm"
|
||||
>
|
||||
{intl.formatMessage({
|
||||
id: "points.claimPoints.cta",
|
||||
|
||||
@@ -26,12 +26,7 @@ export default function ExpiringPointsSeeAllButton({
|
||||
|
||||
return (
|
||||
<>
|
||||
<Button
|
||||
variant="Text"
|
||||
size="Medium"
|
||||
typography="Body/Paragraph/mdBold"
|
||||
onPress={() => setIsOpen(true)}
|
||||
>
|
||||
<Button variant="Text" size="md" onPress={() => setIsOpen(true)}>
|
||||
{intl.formatMessage({ id: "common.seeAll", defaultMessage: "See all" })}
|
||||
<MaterialIcon icon="chevron_right" color="CurrentColor" />
|
||||
</Button>
|
||||
|
||||
@@ -18,9 +18,9 @@ import { trpc } from "@scandic-hotels/trpc/client"
|
||||
import useLang from "@/hooks/useLang"
|
||||
import { isRestaurantOnSiteTierReward } from "@/utils/rewards"
|
||||
|
||||
import { ConfirmClose } from "./ConfirmClose"
|
||||
import RedeemCampaign from "./Flows/Campaign"
|
||||
import RedeemTier from "./Flows/Tier"
|
||||
import { ConfirmClose } from "./ConfirmClose"
|
||||
import { RedeemContext } from "./useRedeemFlow"
|
||||
|
||||
import styles from "./redeem.module.css"
|
||||
@@ -70,12 +70,7 @@ export default function Redeem({ reward, membershipNumber }: RedeemProps) {
|
||||
<DialogTrigger
|
||||
onOpenChange={(isOpen) => setAnimation(isOpen ? "visible" : "hidden")}
|
||||
>
|
||||
<Button
|
||||
variant="Tertiary"
|
||||
size="Large"
|
||||
typography="Body/Paragraph/mdBold"
|
||||
className={styles.redeemButton}
|
||||
>
|
||||
<Button variant="Tertiary" size="lg" className={styles.redeemButton}>
|
||||
{reward.redeemLocation === "Non-redeemable"
|
||||
? intl.formatMessage({
|
||||
id: "rewards.howToUse",
|
||||
|
||||
@@ -112,7 +112,7 @@ export default async function SASLinkAccountBanner(
|
||||
href={props.link.href}
|
||||
variant="Primary"
|
||||
color="Inverted"
|
||||
size="Medium"
|
||||
size="md"
|
||||
>
|
||||
{buttonText}
|
||||
</ButtonLink>
|
||||
|
||||
@@ -137,7 +137,7 @@ export default async function NextStayContent({
|
||||
<ButtonLink
|
||||
variant="Tertiary"
|
||||
color="Inverted"
|
||||
size="Medium"
|
||||
size="md"
|
||||
href={bookingUrl}
|
||||
className={styles.cta}
|
||||
>
|
||||
|
||||
@@ -16,12 +16,7 @@ export function SeeAllCard({ onPress }: SeeAllCardProps) {
|
||||
|
||||
return (
|
||||
<div className={styles.card}>
|
||||
<Button
|
||||
variant="Secondary"
|
||||
size="Medium"
|
||||
typography="Body/Paragraph/mdBold"
|
||||
onPress={onPress}
|
||||
>
|
||||
<Button variant="Secondary" size="md" onPress={onPress}>
|
||||
{intl.formatMessage({ id: "common.seeAll", defaultMessage: "See all" })}
|
||||
<MaterialIcon icon="chevron_right" color="CurrentColor" />
|
||||
</Button>
|
||||
|
||||
@@ -107,7 +107,7 @@ export default function CarouselCard({ stay }: CarouselCardProps) {
|
||||
<ButtonLink
|
||||
variant="Text"
|
||||
color="Primary"
|
||||
size="Small"
|
||||
size="sm"
|
||||
href={bookingUrl}
|
||||
>
|
||||
{intl.formatMessage({
|
||||
|
||||
@@ -16,12 +16,7 @@ export function SeeAllCard({ onPress }: SeeAllCardProps) {
|
||||
|
||||
return (
|
||||
<div className={styles.card}>
|
||||
<Button
|
||||
variant="Secondary"
|
||||
size="Medium"
|
||||
typography="Body/Paragraph/mdBold"
|
||||
onPress={onPress}
|
||||
>
|
||||
<Button variant="Secondary" size="md" onPress={onPress}>
|
||||
{intl.formatMessage({ id: "common.seeAll", defaultMessage: "See all" })}
|
||||
<MaterialIcon icon="chevron_right" color="CurrentColor" />
|
||||
</Button>
|
||||
|
||||
@@ -65,7 +65,7 @@ export default async function EmptyUpcomingStays() {
|
||||
})}
|
||||
</p>
|
||||
</Typography>
|
||||
<ButtonLink href={href} variant="Tertiary" color="Primary" size="Small">
|
||||
<ButtonLink href={href} variant="Tertiary" color="Primary" size="sm">
|
||||
{intl.formatMessage({
|
||||
id: "stays.findDestinationOrHotel",
|
||||
defaultMessage: "Find hotel or destination",
|
||||
|
||||
Reference in New Issue
Block a user