fix(SW-3081): Removed color option from hotel logos to avoid wrong colors

Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-07-04 11:40:09 +00:00
parent 270249c6c4
commit 903f419729
13 changed files with 37 additions and 69 deletions

View File

@@ -52,11 +52,7 @@ export default function LinkEmploymentErrorPage() {
</span> </span>
</ButtonLink> </ButtonLink>
<div className={styles.logoContainer}> <div className={styles.logoContainer}>
<ScandicLogoIcon <ScandicLogoIcon height="20px" width="94px" />
color="Icon/Interactive/Accent"
height="20px"
width="94px"
/>
</div> </div>
</nav> </nav>

View File

@@ -32,11 +32,7 @@ export function LogoLink() {
defaultMessage: "Back to scandichotels.com", defaultMessage: "Back to scandichotels.com",
})} })}
> >
<ScandicLogoIcon <ScandicLogoIcon width="103px" height="22px" />
width="103px"
height="22px"
color="Icon/Interactive/Accent"
/>
</NextLink> </NextLink>
) )
} }

View File

@@ -119,7 +119,7 @@ export async function Receipt({ refId }: { refId: string }) {
return ( return (
<main className={styles.main}> <main className={styles.main}>
<div> <div>
<ScandicLogoIcon width="89px" height="19px" color="Icon/Accent" /> <ScandicLogoIcon width="89px" height="19px" />
<div className={styles.addresses}> <div className={styles.addresses}>
<div> <div>
<Typography variant="Body/Supporting text (caption)/smRegular"> <Typography variant="Body/Supporting text (caption)/smRegular">

View File

@@ -1,17 +1,15 @@
import type { LogoProps } from '../icon' import type { LogoProps } from '../icon'
import { iconVariants } from '../variants'
export default function DowntownCamperIcon({ export default function DowntownCamperIcon({
className, className = '',
color,
height = 30, height = 30,
width = 123,
...props ...props
}: LogoProps) { }: LogoProps) {
const classNames = iconVariants({ className, color })
return ( return (
<svg <svg
className={classNames} className={className}
width="123" width={width}
height={height} height={height}
viewBox="0 0 123 30" viewBox="0 0 123 30"
fill="none" fill="none"

View File

@@ -1,18 +1,15 @@
import { iconVariants } from '../variants'
import type { LogoProps } from '../icon' import type { LogoProps } from '../icon'
export default function GrandHotelOsloLogoIcon({ export default function GrandHotelOsloLogoIcon({
className, className = '',
color,
height = 30, height = 30,
width = 69,
...props ...props
}: LogoProps) { }: LogoProps) {
const classNames = iconVariants({ className, color })
return ( return (
<svg <svg
className={classNames} className={className}
width="69" width={width}
height={height} height={height}
viewBox="0 0 69 30" viewBox="0 0 69 30"
fill="none" fill="none"

View File

@@ -1,18 +1,15 @@
import { iconVariants } from '../variants'
import type { LogoProps } from '../icon' import type { LogoProps } from '../icon'
export default function HaymarketIcon({ export default function HaymarketIcon({
className, className = '',
color,
height = 26, height = 26,
width = 100,
...props ...props
}: LogoProps) { }: LogoProps) {
const classNames = iconVariants({ className, color })
return ( return (
<svg <svg
className={classNames} className={className}
width="100" width={width}
height={height} height={height}
viewBox="0 0 100 26" viewBox="0 0 100 26"
fill="none" fill="none"

View File

@@ -1,18 +1,15 @@
import { iconVariants } from '../variants'
import type { LogoProps } from '../icon' import type { LogoProps } from '../icon'
export default function HotelNorgeIcon({ export default function HotelNorgeIcon({
className, className = '',
color,
height = 24, height = 24,
width = 117,
...props ...props
}: LogoProps) { }: LogoProps) {
const classNames = iconVariants({ className, color })
return ( return (
<svg <svg
className={classNames} className={className}
width="117" width={width}
height={height} height={height}
viewBox="0 0 117 24" viewBox="0 0 117 24"
fill="none" fill="none"

View File

@@ -1,18 +1,15 @@
import { iconVariants } from '../variants'
import type { LogoProps } from '../icon' import type { LogoProps } from '../icon'
export default function MarskiLogoIcon({ export default function MarskiLogoIcon({
className, className = '',
color,
height = 30, height = 30,
width = 92,
...props ...props
}: LogoProps) { }: LogoProps) {
const classNames = iconVariants({ className, color })
return ( return (
<svg <svg
className={classNames} className={className}
width="92" width={width}
height={height} height={height}
viewBox="0 0 92 30" viewBox="0 0 92 30"
fill="none" fill="none"

View File

@@ -1,18 +1,15 @@
import { iconVariants } from '../variants'
import type { LogoProps } from '../icon' import type { LogoProps } from '../icon'
export default function ScandicGoLogoIcon({ export default function ScandicGoLogoIcon({
className, className = '',
color,
height = 18, height = 18,
width = 90,
...props ...props
}: LogoProps) { }: LogoProps) {
const classNames = iconVariants({ className, color })
return ( return (
<svg <svg
className={classNames} className={className}
width="90" width={width}
height={height} height={height}
viewBox="0 0 90 18" viewBox="0 0 90 18"
fill="none" fill="none"

View File

@@ -1,18 +1,15 @@
import { iconVariants } from '../variants'
import type { LogoProps } from '../icon' import type { LogoProps } from '../icon'
export default function ScandicLogoIcon({ export default function ScandicLogoIcon({
className, className = '',
color,
height = 14, height = 14,
width = 58,
...props ...props
}: LogoProps) { }: LogoProps) {
const classNames = iconVariants({ className, color })
return ( return (
<svg <svg
className={classNames} className={className}
width="58" width={width}
height={height} height={height}
viewBox="0 0 58 14" viewBox="0 0 58 14"
fill="none" fill="none"

View File

@@ -1,18 +1,15 @@
import type { LogoProps } from '../icon' import type { LogoProps } from '../icon'
import { iconVariants } from '../variants'
export default function TheDockIcon({ export default function TheDockIcon({
className, className = '',
color,
height = 30, height = 30,
width = 128,
...props ...props
}: LogoProps) { }: LogoProps) {
const classNames = iconVariants({ className, color })
return ( return (
<svg <svg
className={classNames} className={className}
width="128" width={width}
height={height} height={height}
viewBox="0 0 128 30" viewBox="0 0 128 30"
fill="none" fill="none"

View File

@@ -51,6 +51,6 @@ export default function HotelLogoIcon({
case SignatureHotelEnum.TheDock: case SignatureHotelEnum.TheDock:
return <TheDockIcon height={height} /> return <TheDockIcon height={height} />
default: default:
return <ScandicLogoIcon height={height} color="Icon/Interactive/Accent" /> return <ScandicLogoIcon height={height} />
} }
} }

View File

@@ -15,8 +15,7 @@ export interface IllustrationProps
} }
export interface LogoProps export interface LogoProps
extends Omit<React.SVGAttributes<HTMLOrSVGElement>, 'color'>, extends Omit<React.SVGAttributes<HTMLOrSVGElement>, 'color'> {
VariantProps<typeof iconVariants> {
width?: string | number width?: string | number
height?: string | number height?: string | number
} }