Skip to content

Commit

Permalink
Merge branch 'develop' into feature/CXSPA-8386-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Platonn authored Oct 3, 2024
2 parents 503c1f9 + ce5047c commit 28e020c
Show file tree
Hide file tree
Showing 28 changed files with 6 additions and 56 deletions.
11 changes: 1 addition & 10 deletions projects/ssr-tests/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
const { pathsToModuleNameMapper } = require('ts-jest');
const { compilerOptions } = require('./tsconfig.json');
const { defaultTransformerOptions } = require('jest-preset-angular/presets');

/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */
module.exports = {
preset: 'jest-preset-angular',
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths || {}, {
prefix: '<rootDir>/',
}),
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
testMatch: ['**/+(*.)+(spec).+(ts)'],
transform: {
'^.+\\.(ts|js|mjs|html|svg)$': [
'jest-preset-angular',
{
...defaultTransformerOptions,
tsconfig: '<rootDir>/tsconfig.json',
},
],
'^.+\\.(ts|js|mjs)$': ['ts-jest'],
},

collectCoverage: false,
Expand Down
9 changes: 0 additions & 9 deletions projects/ssr-tests/setup-jest.ts

This file was deleted.

1 change: 1 addition & 0 deletions projects/storefrontstyles/scss/_mixins.scss
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@import 'cxbase/mixins';
@import 'theme/high-contrast/mixins/mixins';
3 changes: 3 additions & 0 deletions projects/storefrontstyles/scss/_site-theme.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import 'theme/high-contrast/dark/variables';
@import 'theme/high-contrast/light/variables';
@import 'theme/high-contrast/high-contrast';
4 changes: 0 additions & 4 deletions projects/storefrontstyles/scss/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,5 @@

//old theme to be commented out on next major or with impex
@import 'theme/santorini/variables';
@import 'theme/high-contrast/dark/variables';
@import 'theme/high-contrast/light/variables';
@import 'theme/high-contrast/high-contrast';
@import 'theme/high-contrast/mixins/mixins';
// new theme below to uncomment on next major or with impex
// @import 'theme/santorini-updated/variables';
1 change: 1 addition & 0 deletions projects/storefrontstyles/scss/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@
@import 'misc/hamburger';
@import 'misc/dialog';
@import 'misc/table';
@import 'site-theme';
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import '../../theme';

%cx-consent-management {
.cx-consent-action-links {
text-align: end;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import '../../theme';

%cx-my-account-v2-notification-preference {
.np-content-center {
-ms-flex-pack: center;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import '../../../theme';

%cx-anonymous-consent-dialog {
color: var(--cx-color-text);
background-color: rgba(0, 0, 0, 0.5);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import '../../../theme';

// To control visual effects while searching the searchbox requires
// some CSS rules to the outer elements.
%cx-searchbox__body {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import '../../../theme';

%cx-add-to-home-screen-banner {
.cx-add-to-home-screen-banner {
background-color: var(--cx-color-background);
Expand Down
2 changes: 0 additions & 2 deletions projects/storefrontstyles/scss/cxbase/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// lower level bootstrap variables. Hence we import the variables here,
// to make the mixins reusable. In order to have the right variables
// we load variables through the theme import. */
@import '../theme';

@import 'bootstrap/scss/_mixins';

@import './mixins/reset';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '../../theme';
@import '../../functions';
@import '../../mixins';
.accordion {
Expand Down
1 change: 0 additions & 1 deletion projects/storefrontstyles/scss/cxbase/blocks/alert.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '../../theme';
@import '../../mixins';
@import 'bootstrap/scss/alert';

Expand Down
1 change: 0 additions & 1 deletion projects/storefrontstyles/scss/cxbase/blocks/buttons.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '../../theme';
@import 'bootstrap/scss/buttons';

button {
Expand Down
1 change: 0 additions & 1 deletion projects/storefrontstyles/scss/cxbase/blocks/card.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '../../theme';
@import 'bootstrap/scss/card';

.card {
Expand Down
1 change: 0 additions & 1 deletion projects/storefrontstyles/scss/cxbase/blocks/carousel.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '../../theme';
@import '../../mixins';

// None of the styles here below are customizable at component level
Expand Down
1 change: 0 additions & 1 deletion projects/storefrontstyles/scss/cxbase/blocks/dropdown.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '../../theme';
@import 'bootstrap/scss/dropdown';

$cx-dropdown-toggle-border-color: 'inverse' !important;
Expand Down
1 change: 0 additions & 1 deletion projects/storefrontstyles/scss/cxbase/blocks/forms.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '../../theme';
@import 'bootstrap/scss/forms';
@import 'bootstrap/scss/custom-forms';

Expand Down
1 change: 0 additions & 1 deletion projects/storefrontstyles/scss/cxbase/blocks/message.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '../../theme';
@import '../../mixins';

.cx-message {
Expand Down
1 change: 0 additions & 1 deletion projects/storefrontstyles/scss/cxbase/blocks/modal.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '../../theme';
@import 'bootstrap/scss/modal';
@import 'bootstrap/scss/close';

Expand Down
2 changes: 0 additions & 2 deletions projects/storefrontstyles/scss/cxbase/blocks/tables.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import '../../theme';

.table {
width: 100%;

Expand Down
2 changes: 0 additions & 2 deletions projects/storefrontstyles/scss/cxbase/blocks/tabs.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import '../../theme';

ul[role='tablist'] {
.nav-link {
border: none;
Expand Down
1 change: 0 additions & 1 deletion projects/storefrontstyles/scss/cxbase/blocks/tooltip.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '../../theme';
@import 'bootstrap/scss/tooltip';

.bs-tooltip-left {
Expand Down
1 change: 0 additions & 1 deletion projects/storefrontstyles/scss/cxbase/layout/app.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '../../theme';
@import '../../functions';
@import '../../mixins';

Expand Down
2 changes: 0 additions & 2 deletions projects/storefrontstyles/scss/cxbase/layout/page.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import '../../theme';

.cx-page {
padding-bottom: 120px;
}
Expand Down
2 changes: 0 additions & 2 deletions projects/storefrontstyles/scss/cxbase/layout/section.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import '../../theme';

.cx-section {
margin-bottom: var(--cx-margin-bottom, 50px);
&:last-child {
Expand Down
2 changes: 0 additions & 2 deletions projects/storefrontstyles/scss/root.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'theme';

:root {
@each $color, $value in $theme-colors {
--cx-color-#{$color}: #{$value};
Expand Down

0 comments on commit 28e020c

Please sign in to comment.