Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/curly-moles-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@baloise/ds-core': minor
---

**styles**: update tcs theme
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Thumbs.db
.nx/workspace-data
.stencil

packages/fonts/assets/partners
packages/core/icons
packages/core/components
packages/core/loader
Expand Down
14 changes: 3 additions & 11 deletions e2e/cypress/e2e/visual/bal-footer.visual.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
})
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 18 additions & 3 deletions libs/nx/src/executors/build-styles/executor.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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 {
Expand All @@ -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 }
Expand Down
28 changes: 28 additions & 0 deletions packages/core/public/future-logo-black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions packages/core/public/future-logo-red.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading