diff --git a/.changeset/curly-moles-crash.md b/.changeset/curly-moles-crash.md
new file mode 100644
index 0000000000..067a1764a0
--- /dev/null
+++ b/.changeset/curly-moles-crash.md
@@ -0,0 +1,5 @@
+---
+'@baloise/ds-core': minor
+---
+
+**styles**: update tcs theme
diff --git a/.gitignore b/.gitignore
index cc10ae496b..d7c4226ee9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -48,6 +48,7 @@ Thumbs.db
.nx/workspace-data
.stencil
+packages/fonts/assets/partners
packages/core/icons
packages/core/components
packages/core/loader
diff --git a/e2e/cypress/e2e/visual/bal-footer.visual.cy.ts b/e2e/cypress/e2e/visual/bal-footer.visual.cy.ts
index 1c6319098a..41c94e3a21 100644
--- a/e2e/cypress/e2e/visual/bal-footer.visual.cy.ts
+++ b/e2e/cypress/e2e/visual/bal-footer.visual.cy.ts
@@ -13,24 +13,16 @@ describe('bal-footer', () => {
cy.platform('desktop').wait(100)
cy.getByTestId('basic').testVisual('basic-footer-desktop')
cy.getByTestId('all-variations').testVisual('all-variations-footer-desktop')
+ cy.getByTestId('partner-variant').testVisual('partner-variant-footer-desktop')
cy.platform('tablet').wait(100)
cy.getByTestId('basic').testVisual('basic-footer-tablet')
cy.getByTestId('all-variations').testVisual('all-variations-footer-tablet')
+ cy.getByTestId('partner-variant').testVisual('partner-variant-footer-tablet')
cy.platform('mobile').wait(100)
cy.getByTestId('basic').testVisual('basic-footer-mobile')
cy.getByTestId('all-variations').testVisual('all-variations-footer-mobile')
- })
-
- it.skip('component variants', () => {
- cy.platform('desktop').wait(100)
- cy.testVisual('footer-variants-desktop')
-
- cy.platform('tablet').wait(100)
- cy.testVisual('footer-variants-tablet')
-
- cy.platform('mobile').wait(100)
- cy.testVisual('footer-variants-mobile')
+ cy.getByTestId('partner-variant').testVisual('partner-variant-footer-mobile')
})
})
diff --git a/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/all-variations-footer-desktop.png b/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/all-variations-footer-desktop.png
index 4ba067cb5e..57332e8a87 100644
Binary files a/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/all-variations-footer-desktop.png and b/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/all-variations-footer-desktop.png differ
diff --git a/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/all-variations-footer-mobile.png b/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/all-variations-footer-mobile.png
index 7dfe5b5759..47a8b82ad1 100644
Binary files a/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/all-variations-footer-mobile.png and b/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/all-variations-footer-mobile.png differ
diff --git a/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/all-variations-footer-tablet.png b/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/all-variations-footer-tablet.png
index 715acf819d..b8b756f6a1 100644
Binary files a/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/all-variations-footer-tablet.png and b/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/all-variations-footer-tablet.png differ
diff --git a/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/basic-footer-desktop.png b/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/basic-footer-desktop.png
index 94f3a7425c..bab5e4457e 100644
Binary files a/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/basic-footer-desktop.png and b/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/basic-footer-desktop.png differ
diff --git a/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/basic-footer-mobile.png b/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/basic-footer-mobile.png
index 628f77c335..906f1f4d3a 100644
Binary files a/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/basic-footer-mobile.png and b/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/basic-footer-mobile.png differ
diff --git a/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/basic-footer-tablet.png b/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/basic-footer-tablet.png
index 1798653170..b9745f67c5 100644
Binary files a/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/basic-footer-tablet.png and b/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/basic-footer-tablet.png differ
diff --git a/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/partner-variant-footer-desktop.png b/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/partner-variant-footer-desktop.png
new file mode 100644
index 0000000000..fecfe223c8
Binary files /dev/null and b/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/partner-variant-footer-desktop.png differ
diff --git a/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/partner-variant-footer-mobile.png b/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/partner-variant-footer-mobile.png
new file mode 100644
index 0000000000..eb2daf581f
Binary files /dev/null and b/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/partner-variant-footer-mobile.png differ
diff --git a/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/partner-variant-footer-tablet.png b/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/partner-variant-footer-tablet.png
new file mode 100644
index 0000000000..233f7919d0
Binary files /dev/null and b/e2e/cypress/snapshots/base/visual/bal-footer.visual.cy.ts/partner-variant-footer-tablet.png differ
diff --git a/libs/nx/src/executors/build-styles/executor.ts b/libs/nx/src/executors/build-styles/executor.ts
index f9a222f6b6..9228cfc444 100644
--- a/libs/nx/src/executors/build-styles/executor.ts
+++ b/libs/nx/src/executors/build-styles/executor.ts
@@ -1,6 +1,7 @@
-import { join } from 'path'
+import { copy } from 'fs-extra'
import { mkdir, rm } from 'fs/promises'
-import { BuildStylesExecutorSchema } from './schema'
+import { join } from 'path'
+import { compileSass, scan } from '../utils'
import { generateBackgroundColors } from './generators/background'
import { generateBorder } from './generators/border'
import { generateElevation } from './generators/elevation'
@@ -10,7 +11,7 @@ import { generateLayout } from './generators/layout'
import { generateSizing } from './generators/sizing'
import { generateSpacing } from './generators/spacing'
import { generateTypography } from './generators/typography'
-import { compileSass, scan } from '../utils'
+import { BuildStylesExecutorSchema } from './schema'
export default async function runExecutor(options: BuildStylesExecutorSchema) {
try {
@@ -37,6 +38,20 @@ export default async function runExecutor(options: BuildStylesExecutorSchema) {
const file = files[index]
await compileSass(file, options)
}
+
+ // copy generated files to css folder
+ await copy(
+ join(options.projectRoot, 'css', 'themes', 'tcs.css'),
+ join(options.projectRoot, '..', 'core', 'www', 'assets', 'tcs.css'),
+ )
+ await copy(
+ join(options.projectRoot, 'css', 'themes', 'santander.css'),
+ join(options.projectRoot, '..', 'core', 'www', 'assets', 'santander.css'),
+ )
+ await copy(
+ join(options.projectRoot, 'css', 'themes', 'future.css'),
+ join(options.projectRoot, '..', 'core', 'www', 'assets', 'future.css'),
+ )
} catch (error) {
console.error(error)
return { success: false }
diff --git a/packages/core/public/future-logo-black.svg b/packages/core/public/future-logo-black.svg
new file mode 100644
index 0000000000..e932d88a02
--- /dev/null
+++ b/packages/core/public/future-logo-black.svg
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/core/public/future-logo-red.svg b/packages/core/public/future-logo-red.svg
new file mode 100644
index 0000000000..9543cd17ed
--- /dev/null
+++ b/packages/core/public/future-logo-red.svg
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/core/public/future-logo.svg b/packages/core/public/future-logo.svg
new file mode 100644
index 0000000000..8916d51541
--- /dev/null
+++ b/packages/core/public/future-logo.svg
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/core/src/components.d.ts b/packages/core/src/components.d.ts
index 084b710192..67dcd27221 100644
--- a/packages/core/src/components.d.ts
+++ b/packages/core/src/components.d.ts
@@ -1550,6 +1550,16 @@ export namespace Components {
* @default false
*/
"hideLinks": boolean;
+ /**
+ * Image address for the logo.
+ * @default ''
+ */
+ "logoHref": string;
+ /**
+ * Svg content for the logo.
+ * @default ''
+ */
+ "logoSvg": string;
/**
* If provided, the footer links will be overridden.
* @default undefined
@@ -7592,6 +7602,16 @@ declare namespace LocalJSX {
* @default false
*/
"hideLinks"?: boolean;
+ /**
+ * Image address for the logo.
+ * @default ''
+ */
+ "logoHref"?: string;
+ /**
+ * Svg content for the logo.
+ * @default ''
+ */
+ "logoSvg"?: string;
/**
* If provided, the footer links will be overridden.
* @default undefined
diff --git a/packages/core/src/components/bal-date/bal-date-calendar/bal-date-calendar.mixins.sass b/packages/core/src/components/bal-date/bal-date-calendar/bal-date-calendar.mixins.sass
index de90826c80..04deceb106 100644
--- a/packages/core/src/components/bal-date/bal-date-calendar/bal-date-calendar.mixins.sass
+++ b/packages/core/src/components/bal-date/bal-date-calendar/bal-date-calendar.mixins.sass
@@ -9,9 +9,9 @@
border-radius: var(--bal-radius-normal)
font-family: var(--bal-font-family-text)
font-weight: var(--bal-font-weight-regular)
- color: var(--bal-color-text-primary)
+ color: var(--bal-date-calendar-button-color)
border: none
- background: transparent
+ background: var(--bal-date-calendar-button-background)
text-align: center
font-size: var(--bal-text-size-normal)
line-height: var(--bal-line-height-normal)
@@ -20,20 +20,20 @@
&:not(&--selected):not(&--disabled)
+hover
&:hover
- background: var(--bal-color-light-blue-1)
+ background: var(--bal-date-calendar-button-background-hover)
&:active
- background: var(--bal-color-light-blue-2)
+ background: var(--bal-date-calendar-button-background-active)
&--today:not(&--selected):not(&--disabled)
- color: var(--bal-color-light-blue-3)
+ color: var(--bal-date-calendar-button-today-color)
font-weight: var(--bal-font-weight-bold)
+hover
&:hover
- color: var(--bal-color-text-primary)
+ color: var(--bal-date-calendar-button-today-color-hover)
&:active
- color: var(--bal-color-text-primary)
+ color: var(--bal-date-calendar-button-today-color-active)
&--selected
- background: var(--bal-color-primary)
- color: var(--bal-color-text-white)
+ background: var(--bal-date-calendar-button-selected-background)
+ color: var(--bal-date-calendar-button-selected-color)
font-weight: var(--bal-font-weight-bold)
&--disabled
cursor: default
diff --git a/packages/core/src/components/bal-date/bal-date-calendar/bal-date-calendar.tsx b/packages/core/src/components/bal-date/bal-date-calendar/bal-date-calendar.tsx
index 244474bf16..90f2f99b29 100644
--- a/packages/core/src/components/bal-date/bal-date-calendar/bal-date-calendar.tsx
+++ b/packages/core/src/components/bal-date/bal-date-calendar/bal-date-calendar.tsx
@@ -1,16 +1,22 @@
import {
Component,
- h,
ComponentInterface,
- Host,
Element,
+ Event,
+ EventEmitter,
+ Host,
+ Method,
Prop,
State,
Watch,
- Method,
- Event,
- EventEmitter,
+ h,
} from '@stencil/core'
+import { BEM } from '../../../utils/bem'
+import { BalConfigObserver, BalConfigState, BalLanguage, ListenToConfig, defaultConfig } from '../../../utils/config'
+import { BalDate } from '../../../utils/date'
+import { waitAfterFramePaint } from '../../../utils/helpers'
+import { LogInstance, Loggable, Logger } from '../../../utils/log'
+import { BalSwipeInfo, BalSwipeObserver, ListenToSwipe } from '../../../utils/swipe'
import {
DayCell,
ListItem,
@@ -21,14 +27,8 @@ import {
generateYears,
getFirstWeekdayOfMonth,
} from '../utils/calendar'
-import { BalDate } from '../../../utils/date'
-import { LogInstance, Loggable, Logger } from '../../../utils/log'
-import { BalConfigObserver, BalConfigState, BalLanguage, ListenToConfig, defaultConfig } from '../../../utils/config'
-import { waitAfterFramePaint } from '../../../utils/helpers'
-import { BEM } from '../../../utils/bem'
-import { CalendarList } from './components/bal-date-calendar__list'
import { CalendarGrid } from './components/bal-date-calendar__gird'
-import { BalSwipeInfo, BalSwipeObserver, ListenToSwipe } from '../../../utils/swipe'
+import { CalendarList } from './components/bal-date-calendar__list'
import { CalendarNav } from './components/bal-date-calendar__nav'
@Component({
diff --git a/packages/core/src/components/bal-date/bal-date-calendar/bal-date-calendar.vars.sass b/packages/core/src/components/bal-date/bal-date-calendar/bal-date-calendar.vars.sass
index 9ced360bd4..af18356614 100644
--- a/packages/core/src/components/bal-date/bal-date-calendar/bal-date-calendar.vars.sass
+++ b/packages/core/src/components/bal-date/bal-date-calendar/bal-date-calendar.vars.sass
@@ -5,5 +5,14 @@
:host
--bal-date-first-week-day: 0
- --bal-date-calendar-background: var(--bal-color-red-3)
+ --bal-date-calendar-button-background: transparent
+ --bal-date-calendar-button-background-hover: var(--bal-color-light-blue-1)
+ --bal-date-calendar-button-background-active: var(--bal-color-light-blue-2)
+ --bal-date-calendar-button-color: var(--bal-color-text-primary)
+ --bal-date-calendar-button-today-color: var(--bal-color-light-blue-3)
+ --bal-date-calendar-button-today-color-hover: var(--bal-color-text-primary)
+ --bal-date-calendar-button-today-color-active: var(--bal-color-text-primary)
+
+ --bal-date-calendar-button-selected-background: var(--bal-color-primary)
+ --bal-date-calendar-button-selected-color: var(--bal-color-text-white)
diff --git a/packages/core/src/components/bal-dropdown/bal-dropdown.sass b/packages/core/src/components/bal-dropdown/bal-dropdown.sass
index 69300fe7ac..24ab283ada 100644
--- a/packages/core/src/components/bal-dropdown/bal-dropdown.sass
+++ b/packages/core/src/components/bal-dropdown/bal-dropdown.sass
@@ -238,7 +238,7 @@
content: ''
border-width: var(--bal-border-width-normal)
border-style: solid
- border-color: var(--bal-focus-shadow)
+ border-color: var(--bal-focus-shadow-end-color)
position: absolute
background: transparent
border-radius: var(--bal-radius-normal)
diff --git a/packages/core/src/components/bal-footer/bal-footer.sass b/packages/core/src/components/bal-footer/bal-footer.sass
index 2f7906177a..49fb7599a5 100644
--- a/packages/core/src/components/bal-footer/bal-footer.sass
+++ b/packages/core/src/components/bal-footer/bal-footer.sass
@@ -49,6 +49,7 @@
display: flex
gap: 1rem
cursor: pointer
+ +fillSvgImportant(var(--bal-footer-language-background))
select
padding-left: 2px
@@ -56,7 +57,7 @@
background: transparent
-webkit-appearance: none
border: none
- color: var(--bal-color-white)
+ color: var(--bal-footer-language-color)
font-weight: var(--bal-font-weight-bold)
font-family: var(--bal-font-family-title)
cursor: pointer
@@ -68,18 +69,23 @@
font-family: var(--bal-font-family-text) !important
&:hover
- +fillSvg(var(--bal-footer-language-background-hover))
+ +fillSvgImportant(var(--bal-footer-language-background-hover))
select
color: var(--bal-footer-language-color-hover)
&:active
- +fillSvg(var(--bal-footer-language-background-active))
+ +fillSvgImportant(var(--bal-footer-language-background-active))
select
color: var(--bal-footer-language-color-active)
+element(logo)
display: flex
align-items: center
+ img
+ max-height: var(--bal-footer-logo-image-max-height)
+ div
+ height: var(--bal-footer-logo-image-max-height)
+ min-width: var(--bal-footer-logo-image-max-height)
+element(links-container)
display: flex
diff --git a/packages/core/src/components/bal-footer/bal-footer.tsx b/packages/core/src/components/bal-footer/bal-footer.tsx
index 2b0691e4f0..fe2c6b0007 100644
--- a/packages/core/src/components/bal-footer/bal-footer.tsx
+++ b/packages/core/src/components/bal-footer/bal-footer.tsx
@@ -1,17 +1,18 @@
import { FooterLink, Language, loadFooterLinks, loadSocialMediaLinks, SocialMediaLink } from '@baloise/web-app-utils'
-import { Component, Host, h, Prop, State, Method } from '@stencil/core'
+import { Component, h, Host, Method, Prop, State, Watch } from '@stencil/core'
+import { BEM } from '../../utils/bem'
import {
BalConfigObserver,
- defaultConfig,
BalConfigState,
BalLanguage,
+ BalRegion,
+ defaultConfig,
ListenToConfig,
updateBalLanguage,
- BalRegion,
} from '../../utils/config'
-import { BEM } from '../../utils/bem'
-import { Loggable, Logger, LogInstance } from '../../utils/log'
import { rIC } from '../../utils/helpers'
+import { Loggable, Logger, LogInstance } from '../../utils/log'
+import { sanitizeSvg } from '../../utils/svg'
import { i18nBalFooter } from './bal-footer.i18n'
@Component({
@@ -19,6 +20,7 @@ import { i18nBalFooter } from './bal-footer.i18n'
styleUrl: 'bal-footer.sass',
})
export class Footer implements BalConfigObserver, Loggable {
+ @State() logoSvgContent = ''
@State() links: FooterLink[] = []
@State() socialMediaLinks: SocialMediaLink[] = []
@State() language: BalLanguage = defaultConfig.language
@@ -37,6 +39,21 @@ export class Footer implements BalConfigObserver, Loggable {
* ------------------------------------------------------
*/
+ /**
+ * Image address for the logo.
+ */
+ @Prop() logoHref = ''
+
+ /**
+ * Svg content for the logo.
+ */
+ @Prop() logoSvg = ''
+ @Watch('logoSvg')
+ logoSvgChanged() {
+ this.logoSvgContent = sanitizeSvg(this.logoSvg)
+ console.log('SVG content updated:', this.logoSvgContent)
+ }
+
/**
* If `true` the legal Baloise links will be hidden.
*/
@@ -65,6 +82,7 @@ export class Footer implements BalConfigObserver, Loggable {
connectedCallback() {
this.updateFooterLinks()
this.updateSocialMediaLinks()
+ this.logoSvgChanged()
}
/**
@@ -165,7 +183,13 @@ export class Footer implements BalConfigObserver, Loggable {
...elLogo.class(),
}}
>
-
+ {this.logoHref ? (
+
+ ) : this.logoSvgContent ? (
+
+ ) : (
+
+ )}
+
+
+
+
+
+
+
+ Haben Sie noch Fragen zu TCS-Fahrzeug-Versicherung?
+ 0800 801 000 .
+ Wir sind von Montag bis Freitag, 8.00 - 18.00 Uhr, für Sie da.
+
+
+
tcs.ch/fahrzeug
+
+
© Touring Club Schweiz in Kooperation mit Baloise Versicherung AG
+
+
+
+
+ Cryptids of Cornwall:
+
+
+ Beast of Bodmin
+ A large feline inhabiting Bodmin Moor.
+
+ Morgawr
+ A sea serpent.
+
+ Owlman
+ A giant owl-like creature.
+
+
+
+
+ Theme
+
+ Typography
+
+ Text Lorem ipsum dolor sit amet, consectetur adipisicing elit. Non quam rerum, mollitia placeat eveniet, nemo
+ ullam voluptate harum vel impedit vitae dolorem magnam expedita perferendis veritatis blanditiis, adipisci
+ odit provident?
+
+
+ Buttons
+
+ Weiter
+ Zurück
+ Tertiary
+ Tertiary Purple
+ Link
+
+
+
+
+
+
+ Angaben zum Versicherungsnehmer/Halter
+
+
+
+
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Molestias magnam dolorum consectetur ea,
+ cupiditate nesciunt ratione ut sequi commodi, inventore, quis nobis accusantium atque corporis? Voluptate
+ labore deserunt sunt explicabo.
+
+
+ Firma
+ Firma
+
+
+ Suchen
+
+ Geben Sie Ihren Firmennamen oder Ihre UID (Unternehmens-Identifikationsnummer) ein.
+
+
+ Invalid
+
+
+
+ Geben Sie Ihren Firmennamen oder Ihre UID (Unternehmens-Identifikationsnummer) ein.
+
+
+ Disabled
+
+
+
+ Geben Sie Ihren Firmennamen oder Ihre UID (Unternehmens-Identifikationsnummer) ein.
+
+
+
+
+ Sie konnten Ihre Firma nicht finden?
+ manuell Eingeben
+
+
+
+
+
+ Wählen Sie das Fahrzeug
+
+ Bitte wählen Sie, mit welchen Angaben Sie das Fahrzeug suchen möchten.
+
+
+
+
+
+
+ 1. Inverkehrsetzung
+
+
+
+
+
+ Marke
+
+
+ Audi
+ BMW
+ Mercedes
+ Volkswagen
+ Volvo
+ Porsche
+ Ferrari
+ Lamborghini
+
+
+
+
+
+ All
+ 100 PS
+ 140 PS
+ 165 PS
+ 210 PS
+
+
+ All
+ 100 PS
+ 140 PS
+ 165 PS
+ 210 PS
+
+
+
+
+ Label
+
+
+ Apple
+ Pineapple
+ Orange
+
+
+ Field Message
+
+
+
+ Label
+
+
+ Label
+
+
+ Field Message
+
+
+
+ Label 1
+ Label 2
+ Disabled
+ Random text with a Link in it
+
+
+
+
+
+
diff --git a/packages/core/src/components/bal-hint/bal-hint.sass b/packages/core/src/components/bal-hint/bal-hint.sass
index 75c46c9271..f96ae3174a 100644
--- a/packages/core/src/components/bal-hint/bal-hint.sass
+++ b/packages/core/src/components/bal-hint/bal-hint.sass
@@ -8,15 +8,15 @@
user-select: none
cursor: pointer
&:hover
- +fillSvg(var(--bal-color-light-blue-5))
+ +fillSvg(var(--bal-hint-icon-color-hover))
&:focus-visible:not(:active)
@extend %focus-shadow
+element(popup)
.bal-popup__container
z-index: var(--bal-z-index-popup)
background: var(--bal-hint-content-background)
+ border: 8px solid var(--bal-hint-content-border-color)
+element(content)
- background: var(--bal-hint-content-background)
width: auto
max-width: 30rem
min-width: 16.25rem
@@ -64,5 +64,3 @@
z-index: var(--bal-z-index-popup)
+modifier('active')
display: block
-
-
diff --git a/packages/core/src/components/bal-hint/bal-hint.vars.sass b/packages/core/src/components/bal-hint/bal-hint.vars.sass
index 27dc523529..1984787b2b 100644
--- a/packages/core/src/components/bal-hint/bal-hint.vars.sass
+++ b/packages/core/src/components/bal-hint/bal-hint.vars.sass
@@ -6,3 +6,5 @@
//
// background colors
--bal-hint-content-background: var(--bal-color-grey-2)
+ --bal-hint-content-border-color: var(--bal-color-grey-2)
+ --bal-hint-icon-color-hover: var(--bal-color-light-blue-5)
diff --git a/packages/core/src/components/bal-icon/bal-icon.sass b/packages/core/src/components/bal-icon/bal-icon.sass
index 604cd16fed..bfb277a9eb 100644
--- a/packages/core/src/components/bal-icon/bal-icon.sass
+++ b/packages/core/src/components/bal-icon/bal-icon.sass
@@ -59,8 +59,8 @@
//
// tile
+modifier(tile)
- background: var(--bal-color-purple-1)
- border-radius: var(--bal-radius-normal)
+ background: var(--bal-icon-tile-background)
+ border-radius: var(--bal-icon-tile-radius)
height: 2rem
+iconSize(2rem)
+tablet
diff --git a/packages/core/src/components/bal-icon/bal-icon.vars.sass b/packages/core/src/components/bal-icon/bal-icon.vars.sass
index 1760b19619..522b7b11eb 100644
--- a/packages/core/src/components/bal-icon/bal-icon.vars.sass
+++ b/packages/core/src/components/bal-icon/bal-icon.vars.sass
@@ -41,3 +41,5 @@
--bal-icon-color-light-blue: var(--bal-color-light-blue-5)
--bal-icon-color-primary-light: var(--bal-color-primary-3)
--bal-icon-color-white: var(--bal-color-white)
+ --bal-icon-tile-background: var(--bal-color-purple-1)
+ --bal-icon-tile-radius: var(--bal-radius-normal)
diff --git a/packages/core/src/components/bal-input-group/bal-input-group.sass b/packages/core/src/components/bal-input-group/bal-input-group.sass
index f3763ab4d5..b791039d0b 100644
--- a/packages/core/src/components/bal-input-group/bal-input-group.sass
+++ b/packages/core/src/components/bal-input-group/bal-input-group.sass
@@ -75,7 +75,7 @@
&,
.input,
.bal-select__control
- background: var(--bal-color-grey-1)
+ background: var(--bal-form-field-control-background-hover)
+modifier(is-danger)
&,
diff --git a/packages/core/src/components/bal-label/bal-label.sass b/packages/core/src/components/bal-label/bal-label.sass
index 2f6045fbaa..2ecc41c372 100644
--- a/packages/core/src/components/bal-label/bal-label.sass
+++ b/packages/core/src/components/bal-label/bal-label.sass
@@ -1,5 +1,5 @@
@use '@baloise/ds-styles/sass/mixins' as *
-
+@use './bal-label.vars' as *
// Label
// --------------------------------------------------
@@ -15,8 +15,8 @@
hyphens: auto
white-space: pre
min-width: 0
- font-family: var(--bal-form-field-label-font-family)
- font-weight: var(--bal-form-field-label-font-weight)
+ font-family: var(--bal-label-font-family)
+ font-weight: var(--bal-label-font-weight)
font-size: var(--bal-text-size-normal)
line-height: var(--bal-line-height-normal)
&--multiline
@@ -29,15 +29,15 @@
//
// font sizes
&--small
- font-family: var(--bal-font-family-text)
- font-size: var(--bal-text-size-small)
- line-height: var(--bal-line-height-small)
+ font-family: var(--bal-label-small-font-family)
+ font-size: var(--bal-label-small-font-size)
+ line-height: var(--bal-label-small-line-height)
+tablet
- font-size: var(--bal-text-size-small-tablet)
- line-height: var(--bal-line-height-tablet-small)
+ font-size: var(--bal-label-small-font-size-tablet)
+ line-height: var(--bal-label-small-line-height-tablet)
+desktop
- font-size: var(--bal-text-size-small-desktop)
- line-height: var(--bal-line-height-desktop-small)
+ font-size: var(--bal-label-small-font-size-desktop)
+ line-height: var(--bal-label-small-line-height-desktop)
&--large
font-family: var(--bal-font-family-title)
font-size: var(--bal-text-size-large)
diff --git a/packages/core/src/components/bal-label/bal-label.vars.sass b/packages/core/src/components/bal-label/bal-label.vars.sass
new file mode 100644
index 0000000000..2ddf635f5d
--- /dev/null
+++ b/packages/core/src/components/bal-label/bal-label.vars.sass
@@ -0,0 +1,17 @@
+
+:root,
+:host
+ --bal-label-font-family: var(--bal-form-field-label-font-family)
+ --bal-label-font-weight: var(--bal-form-field-label-font-weight)
+ --bal-label-small-font-family: var(--bal-form-field-label-font-family)
+ --bal-label-small-font-weight: var(--bal-form-field-label-font-weight)
+
+ --bal-label-small-font-size: var(--bal-text-size-small)
+ --bal-label-small-font-size-tablet: var(--bal-text-size-small-tablet)
+ --bal-label-small-font-size-desktop: var(--bal-text-size-small-desktop)
+
+ --bal-label-small-line-height: var(--bal-line-height-small)
+ --bal-label-small-line-height-tablet: var(--bal-line-height-tablet-small)
+ --bal-label-small-line-height-desktop: var(--bal-line-height-desktop-small)
+
+
diff --git a/packages/core/src/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.tsx b/packages/core/src/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.tsx
index 98e94c6e00..cb9d03e93f 100644
--- a/packages/core/src/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.tsx
+++ b/packages/core/src/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.tsx
@@ -162,7 +162,17 @@ export class NavbarBrand {
const navbarBrandEl = BEM.block('navbar').element('brand')
const logoTemplate = this.logo ? (
-
+
) : (
)
diff --git a/packages/core/src/components/bal-navbar/bal-navbar.sass b/packages/core/src/components/bal-navbar/bal-navbar.sass
index c143ad3f0b..4c5a473813 100644
--- a/packages/core/src/components/bal-navbar/bal-navbar.sass
+++ b/packages/core/src/components/bal-navbar/bal-navbar.sass
@@ -37,6 +37,10 @@
object-fit: contain
+desktop
height: calc(100% - 2rem)
+ +modifier(small)
+ height: calc(100% - 2.5rem)
+ +desktop
+ height: calc(100% - 3.5rem)
+element(title)
display: none
diff --git a/packages/core/src/components/bal-radio/bal-radio-icon/bal-radio-icon.sass b/packages/core/src/components/bal-radio/bal-radio-icon/bal-radio-icon.sass
index 1d5df57f81..0961eca128 100644
--- a/packages/core/src/components/bal-radio/bal-radio-icon/bal-radio-icon.sass
+++ b/packages/core/src/components/bal-radio/bal-radio-icon/bal-radio-icon.sass
@@ -33,14 +33,14 @@
content: ''
background-color: transparent
border-radius: var(--bal-radio-icon-border-radius)
- width: 0.375rem
- height: 0.375rem
+ width: var(--bal-radio-icon-inner-width, 0.375rem)
+ height: var(--bal-radio-icon-inner-height, 0.375rem)
//
// checked
bal-icon
opacity: 0
&--checked:after
- background-color: white
+ background-color: var(--bal-radio-icon-inner-background-checked)
&--checked
background-color: var(--bal-radio-icon-background-checked)
border-color: var(--bal-radio-icon-border-color-checked)
diff --git a/packages/core/src/components/bal-radio/bal-radio-icon/bal-radio-icon.vars.sass b/packages/core/src/components/bal-radio/bal-radio-icon/bal-radio-icon.vars.sass
index 73f122dcb0..e8e1a70e7a 100644
--- a/packages/core/src/components/bal-radio/bal-radio-icon/bal-radio-icon.vars.sass
+++ b/packages/core/src/components/bal-radio/bal-radio-icon/bal-radio-icon.vars.sass
@@ -2,6 +2,10 @@
--bal-radio-icon-size: 1.5rem
--bal-radio-icon-border-width: 2px
--bal-radio-icon-border-radius: var(--bal-radius-rounded)
+
+ --bal-radio-icon-inner-width: 0.375rem
+ --bal-radio-icon-inner-height: 0.375rem
+ --bal-radio-icon-inner-background-checked: white
--bal-radio-icon-color-inverted: var(--bal-color-white)
--bal-radio-icon-border-color: var(--bal-color-primary)
diff --git a/packages/core/src/components/bal-segment/bal-segment-item/bal-segment-item.sass b/packages/core/src/components/bal-segment/bal-segment-item/bal-segment-item.sass
index dbc7020956..01eda2c34f 100644
--- a/packages/core/src/components/bal-segment/bal-segment-item/bal-segment-item.sass
+++ b/packages/core/src/components/bal-segment/bal-segment-item/bal-segment-item.sass
@@ -186,10 +186,10 @@
+hover
&:hover
.bal-segment-item__button:not(.bal-segment-item__button--checked)
- color: var(--bal-segment-item-text-color-checked-hovered)
+ color: var(--bal-segment-item-text-color-hovered)
&:active
.bal-segment-item__button:not(.bal-segment-item__button--checked)
- color: var(--bal-segment-item-text-color-checked-pressed)
+ color: var(--bal-segment-item-text-color-pressed)
// Focused
// --------------------------------------------------
diff --git a/packages/core/src/components/bal-segment/bal-segment.vars.sass b/packages/core/src/components/bal-segment/bal-segment.vars.sass
index ab815dfb5d..29adcf5412 100644
--- a/packages/core/src/components/bal-segment/bal-segment.vars.sass
+++ b/packages/core/src/components/bal-segment/bal-segment.vars.sass
@@ -27,8 +27,8 @@
--bal-segment-item-focus-border: var(--bal-color-border-primary)
- --bal-segment-item-text-color: var(--bal-color-text-primary)
- --bal-segment-item-text-color-checked: var(--bal-color-text-primary)
+ --bal-segment-item-text-color: var(--bal-body-color)
+ --bal-segment-item-text-color-checked: var(--bal-body-color)
--bal-segment-item-text-color-checked-hovered: var(--bal-color-text-primary-hovered)
--bal-segment-item-text-color-checked-pressed: var(--bal-color-text-primary-pressed)
diff --git a/packages/core/src/components/bal-select/bal-select.sass b/packages/core/src/components/bal-select/bal-select.sass
index 3557ba12b8..eff6a6a490 100644
--- a/packages/core/src/components/bal-select/bal-select.sass
+++ b/packages/core/src/components/bal-select/bal-select.sass
@@ -26,7 +26,7 @@
// visible form control of the select
+element(control)
display: flex
- border-width: 0.125rem
+ border-width: var(--bal-border-width-normal)
border-style: solid
border-color: var(--bal-select-control-border-color)
border-radius: var(--bal-select-control-border-radius)
diff --git a/packages/core/src/components/bal-select/bal-select.vars.sass b/packages/core/src/components/bal-select/bal-select.vars.sass
index 50a69b40d5..e49adbcbaa 100644
--- a/packages/core/src/components/bal-select/bal-select.vars.sass
+++ b/packages/core/src/components/bal-select/bal-select.vars.sass
@@ -41,7 +41,7 @@
--bal-select-control-background-hover: var(--bal-form-field-control-background-hover)
--bal-select-control-background-invalid: var(--bal-form-field-control-danger-background)
--bal-select-control-background-disabled: var(--bal-form-field-control-disabled-background)
- --bal-select-control-input-background: var(--bal-color-grey-1)
+ --bal-select-control-input-background: var(--bal-form-field-control-background-hover)
--bal-select-control-native-input-background: transparent
--bal-select-control-native-input-background-hover: transparent
--bal-select-control-input-inverted-footer-background: transparent
diff --git a/packages/core/src/components/bal-shape/bal-shape.tsx b/packages/core/src/components/bal-shape/bal-shape.tsx
index 8d2f050aeb..99a893a244 100644
--- a/packages/core/src/components/bal-shape/bal-shape.tsx
+++ b/packages/core/src/components/bal-shape/bal-shape.tsx
@@ -1,6 +1,6 @@
-import { Component, h, ComponentInterface, Host, Element, Prop } from '@stencil/core'
-import { BEM } from '../../utils/bem'
import * as BaloiseDesignToken from '@baloise/ds-tokens'
+import { Component, ComponentInterface, Element, h, Host, Prop } from '@stencil/core'
+import { BEM } from '../../utils/bem'
@Component({
tag: 'bal-shape',
diff --git a/packages/core/src/components/bal-spinner/bal-spinner.sass b/packages/core/src/components/bal-spinner/bal-spinner.sass
index 1d2ae7256f..68460b1293 100644
--- a/packages/core/src/components/bal-spinner/bal-spinner.sass
+++ b/packages/core/src/components/bal-spinner/bal-spinner.sass
@@ -1,4 +1,6 @@
+
@use '@baloise/ds-styles/sass/mixins' as *
+@use './bal-spinner.vars' as *
// Spinner
// --------------------------------------------------
@@ -23,9 +25,9 @@ bal-spinner,
margin: auto
border-width: 0.25rem
border-style: solid
- border-color: var(--bal-color-grey)
+ border-color: var(--bal-spinner-circle-background)
border-radius: 50%
- border-top-color: var(--bal-color-primary)
+ border-top-color: var(--bal-spinner-circle-progress)
width: 1.5rem
height: 1.5rem
@@ -38,8 +40,8 @@ bal-spinner,
animation: spinner 1.6s linear infinite
.bal-spinner--circle.bal-spinner--color-white
- border-color: var(--bal-color-white)
- border-top-color: var(--bal-color-primary)
+ border-color: var(--bal-spinner-circle-background-inverted)
+ border-top-color: var(--bal-spinner-circle-progress-inverted)
@keyframes spinner
0%
diff --git a/packages/core/src/components/bal-spinner/bal-spinner.vars.sass b/packages/core/src/components/bal-spinner/bal-spinner.vars.sass
new file mode 100644
index 0000000000..ae956b95d9
--- /dev/null
+++ b/packages/core/src/components/bal-spinner/bal-spinner.vars.sass
@@ -0,0 +1,5 @@
+:root
+ --bal-spinner-circle-background: var(--bal-color-grey)
+ --bal-spinner-circle-progress: var(--bal-color-primary)
+ --bal-spinner-circle-background-inverted: var(--bal-color-white)
+ --bal-spinner-circle-progress-inverted: var(--bal-color-primary)
diff --git a/packages/core/src/components/bal-tabs/bal-tabs.vars.sass b/packages/core/src/components/bal-tabs/bal-tabs.vars.sass
index 7e3fbccca7..7fadd750b7 100644
--- a/packages/core/src/components/bal-tabs/bal-tabs.vars.sass
+++ b/packages/core/src/components/bal-tabs/bal-tabs.vars.sass
@@ -46,6 +46,7 @@
--bal-tabs-tab-button-icon-text-color-inverted-active: var(--bal-color-text-info)
--bal-tabs-tab-label-text-color: var(--bal-color-text-primary)
+ --bal-tabs-tab-label-text-color-active: var(--bal-color-text-primary)
--bal-tabs-tab-label-text-color-disabled: var(--bal-color-text-grey)
--bal-tabs-tab-label-text-color-inverted: var(--bal-color-text-white)
--bal-tabs-tab-label-text-color-inverted-disabled: var(--bal-color-text-primary-light)
diff --git a/packages/core/src/components/bal-tabs/components/tab-label.sass b/packages/core/src/components/bal-tabs/components/tab-label.sass
index 8f6737d094..aae2cee081 100644
--- a/packages/core/src/components/bal-tabs/components/tab-label.sass
+++ b/packages/core/src/components/bal-tabs/components/tab-label.sass
@@ -14,6 +14,7 @@
hyphens: auto
white-space: nowrap
user-select: none
+ color: var(--bal-tabs-tab-label-text-color)
&--with-svg
text-align: left
display: flex
@@ -33,7 +34,8 @@
//
// Color status
- color: var(--bal-tabs-tab-label-text-color)
+ &--active
+ color: var(--bal-tabs-tab-label-text-color-active)
&--disabled
color: var(--bal-tabs-tab-label-text-color-disabled)
&--inverted
@@ -70,4 +72,4 @@
//
// sub label
&__sub-label
- font-size: var(--bal-text-size-small)
\ No newline at end of file
+ font-size: var(--bal-text-size-small)
diff --git a/packages/core/src/test/theme-bal.visual.html b/packages/core/src/test/theme-bal.visual.html
new file mode 100644
index 0000000000..656b05c10a
--- /dev/null
+++ b/packages/core/src/test/theme-bal.visual.html
@@ -0,0 +1,194 @@
+
+
+