Skip to content

Commit 10bd1e9

Browse files
authored
feat(design)!: remove all deprecated scss files and mixins in @daffodil/design (#2875)
BREAKING CHANGE: - `uppercase()` mixin has been removed from the codebase. Set the `text-transform` style directly using scss. - `single-line-ellipsis()` mixin has been removed from the codebase. Use `text-truncate()` instead. - `@daffodil/design/scss/daff-util` has been replaced with `@daffodil/design/scss/utilities` - `daff-tyopgraphy.scss` has been replaced with the typography folder. - `@daffodil/design/scss/daff-global` has been replaced with `@daffodil/design/scss/global`
1 parent affd3e8 commit 10bd1e9

File tree

52 files changed

+87
-174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+87
-174
lines changed

apps/daffio/src/app/content/why-pwa/components/feature-comparison/feature-comparison.component.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
&__header {
1515
@include comparison-cell();
16+
@include daff.embolden();
1617
align-items: flex-start;
1718
font-size: 0.75rem;
1819
padding: 15px 5px;
19-
@include daff.embolden();
20-
@include daff.uppercase();
20+
text-transform: uppercase;
2121

2222
@include daff.breakpoint(tablet) {
2323
padding: 25px 5px;

apps/daffio/src/app/core/footer/footer/footer.component.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@
6767

6868
&__link {
6969
@include daff.embolden();
70-
@include daff.uppercase();
7170
display: flex;
7271
align-items: center;
7372
gap: 8px;
7473
text-decoration: none;
74+
text-transform: uppercase;
7575
}
7676

7777
&__copyright {

apps/daffio/src/app/design/device/iphone/iphone.component.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @import 'theme';
2-
// @import 'utilities';
2+
// @use 'utilities' as *;
33

44
// $phoneColor: daff-map-deep-get($theme, "core.base");
55
// $phoneShadow: daff-illuminate($phoneColor, $daff-neutral, 3);

apps/demo/src/app/cart/components/add-to-cart-notification/components/add-to-cart-notification/add-to-cart-notification.component.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@use 'demo-theme';
2-
@import 'utilities';
2+
@use 'utilities' as *;
33

44
.demo-add-to-cart-notification {
55
background-color: demo-theme.$white;
@@ -12,9 +12,9 @@
1212
}
1313

1414
&__header {
15-
margin-bottom: 25px;
1615
@include embolden();
17-
@include uppercase();
16+
margin-bottom: 25px;
17+
text-transform: uppercase;
1818
}
1919

2020
&__check-icon {

apps/demo/src/app/cart/components/add-to-cart-notification/components/product-added/product-added.component.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@use 'demo-theme';
2-
@import 'utilities';
2+
@use 'utilities' as *;
33

44
.demo-product-added {
55
display: grid;

apps/demo/src/app/cart/components/cart-item-count/cart-item-count.component.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@import 'utilities';
2-
@import 'theme';
1+
@use 'utilities' as *;
2+
@use 'demo-theme' as *;
33

44
.demo-cart-item-count {
55
color: daff-color($daff-neutral, 80);

apps/demo/src/app/cart/components/cart-item/cart-item.component.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@use 'demo-theme';
2-
@import 'utilities';
2+
@use 'utilities' as *;
33

44
.demo-cart-item {
55
display: grid;

apps/demo/src/app/cart/components/cart-sidebar/cart-sidebar.component.scss

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
@import 'utilities';
2-
@import 'theme';
1+
@use 'utilities' as *;
2+
@use 'demo-theme' as *;
3+
@use '../../../../scss/mixins/dividers' as *;
34

45
.demo-cart-sidebar {
56
&__summary {
@@ -11,9 +12,9 @@
1112
}
1213

1314
&__title {
14-
display: none;
1515
@include embolden();
16-
@include uppercase();
16+
display: none;
17+
text-transform: uppercase;
1718

1819
@include breakpoint(big-tablet) {
1920
display: block;

apps/demo/src/app/cart/components/cart-summary-wrapper/cart-summary-wrapper.component.scss

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
@import 'utilities';
2-
@import 'theme';
1+
@use 'utilities' as *;
2+
@use 'demo-theme' as *;
3+
@use '../../../../scss/mixins/dividers' as *;
34

45
.demo-cart-summary-wrapper {
56
display: grid;

apps/demo/src/app/cart/components/cart-summary/cart-summary.component.scss

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
@import 'utilities';
2-
@import 'theme';
1+
@use 'utilities' as *;
2+
@use 'demo-theme' as *;
3+
@use '../../../../scss/mixins/dividers' as *;
34

45
.demo-cart-summary {
56
display: flex;

apps/demo/src/app/cart/components/cart-totals-item/cart-totals-item.component.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'utilities';
1+
@use 'utilities' as *;
22

33
:host {
44
display: block;
@@ -14,7 +14,7 @@
1414
}
1515

1616
&.emphasize { /* stylelint-disable-line selector-class-pattern */
17-
@include uppercase();
1817
@include embolden();
18+
text-transform: uppercase;
1919
}
2020
}

apps/demo/src/app/cart/components/cart/cart.component.scss

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
@import 'utilities';
2-
@import 'theme';
1+
@use 'utilities' as *;
2+
@use 'demo-theme' as *;
3+
@use '../../../../scss/mixins/dividers' as *;
34

45
:host {
56
display: grid;
@@ -26,7 +27,7 @@
2627

2728
&__title {
2829
@include embolden();
29-
@include uppercase();
30+
text-transform: uppercase;
3031
}
3132

3233
&__item-count {

apps/demo/src/app/cart/components/minicart-item/minicart-item.component.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@use 'demo-theme';
2-
@import 'utilities';
2+
@use 'utilities' as *;
33

44
:host {
55
display: grid;

apps/demo/src/app/cart/pages/cart-view/cart-view.component.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'utilities';
1+
@use 'utilities' as *;
22
@import 'theme';
33

44
.demo-cart-view {

apps/demo/src/app/checkout/components/forms/address/components/address-form/address-form.component.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'utilities';
1+
@use 'utilities' as *;
22

33
.demo-checkout-address-form {
44
display: grid;

apps/demo/src/app/checkout/components/payment/billing-summary/billing-summary.component.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'utilities';
1+
@use 'utilities' as *;
22

33
.demo-checkout-billing-summary {
44
font-size: $small-font-size;

apps/demo/src/app/checkout/components/payment/payment-form/payment-form.component.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'utilities';
1+
@use 'utilities' as *;
22

33
.demo-checkout-payment-form {
44
display: flex;
@@ -10,9 +10,9 @@
1010
}
1111

1212
&__title {
13-
margin-bottom: 15px;
1413
@include embolden();
15-
@include uppercase();
14+
margin-bottom: 15px;
15+
text-transform: uppercase;
1616
}
1717

1818
&__subtitle {

apps/demo/src/app/checkout/components/payment/payment-info-form/components/payment-info-form/payment-info-form.component.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'utilities';
1+
@use 'utilities' as *;
22

33
.demo-payment-info-form {
44
display: grid;

apps/demo/src/app/checkout/components/payment/payment-summary/payment-summary.component.scss

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'utilities';
1+
@use 'utilities' as *;
22

33
.demo-checkout-payment-summary {
44
font-size: $small-font-size;
@@ -21,10 +21,10 @@
2121
}
2222

2323
&__title {
24+
@include embolden();
2425
margin-bottom: 5px;
2526
grid-area: title;
26-
@include embolden();
27-
@include uppercase();
27+
text-transform: uppercase;
2828
}
2929

3030
&__method-title {
@@ -55,9 +55,9 @@
5555
}
5656

5757
&__title {
58+
@include embolden();
5859
font-size: 1rem;
5960
margin-bottom: 15px;
60-
@include embolden();
61-
@include uppercase();
61+
text-transform: uppercase;
6262
}
6363
}

apps/demo/src/app/checkout/components/shipping-address/form/shipping-address-form.component.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
@import 'utilities';
1+
@use 'utilities' as *;
22

33
.demo-checkout-shipping-address-form {
44
display: flex;
55
flex-direction: column;
66

77
&__title {
8-
margin-bottom: 15px;
98
@include embolden();
10-
@include uppercase();
9+
margin-bottom: 15px;
10+
text-transform: uppercase;
1111
}
1212

1313
&__button {

apps/demo/src/app/checkout/components/shipping-address/summary/shipping-address-summary.component.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'utilities';
1+
@use 'utilities' as *;
22

33
.demo-checkout-shipping-address-summary {
44
font-size: $small-font-size;
@@ -21,10 +21,10 @@
2121
}
2222

2323
&__title {
24+
@include embolden();
2425
font-size: 1rem;
2526
margin-bottom: 15px;
26-
@include embolden();
27-
@include uppercase();
27+
text-transform: uppercase;
2828
grid-area: title;
2929
}
3030

apps/demo/src/app/checkout/components/shipping/shipping-form/shipping-form.component.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
@import 'utilities';
1+
@use 'utilities' as *;
22

33
.demo-checkout-shipping-form {
44
display: flex;
55
flex-direction: column;
66

77
&__title {
8-
margin-bottom: 15px;
98
@include embolden();
10-
@include uppercase();
9+
margin-bottom: 15px;
10+
text-transform: uppercase;
1111
}
1212

1313
&__button {

apps/demo/src/app/checkout/components/shipping/shipping-options/components/shipping-options/shipping-options.component.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'utilities';
1+
@use 'utilities' as *;
22
@import 'theme';
33

44
.demo-checkout-shipping-options {

apps/demo/src/app/checkout/components/shipping/shipping-summary/shipping-summary.component.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'utilities';
1+
@use 'utilities' as *;
22

33
.demo-checkout-shipping-summary {
44
font-size: $small-font-size;
@@ -21,10 +21,10 @@
2121
}
2222

2323
&__title {
24+
@include embolden();
2425
font-size: 1rem;
2526
margin-bottom: 15px;
26-
@include embolden();
27-
@include uppercase();
27+
text-transform: uppercase;
2828
grid-area: title;
2929
}
3030

apps/demo/src/app/checkout/pages/checkout-view/checkout-view.component.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'utilities';
1+
@use 'utilities' as *;
22
@import 'theme';
33

44
.demo-checkout {

apps/demo/src/app/core/footer/footer.component.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'utilities';
1+
@use 'utilities' as *;
22

33
:host {
44
display: block;

apps/demo/src/app/core/header/components/header/header.component.scss

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
@import 'utilities';
2-
@import 'theme';
1+
@use 'utilities' as *;
2+
@use 'demo-theme' as *;
3+
@use '../../../../../scss/mixins/dividers' as *;
34

45
.demo-header {
56
padding: 0;
6-
@include section-divider;
7+
@include section-divider();
78

89
&__menu {
910
border-right: 1px solid daff-color($daff-neutral, 20);

apps/demo/src/app/core/sidebar/components/sidebar-list/sidebar-list.component.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'utilities';
1+
@use 'utilities' as *;
22
@import 'theme';
33

44
.demo-sidebar-list {

apps/demo/src/app/core/sidebar/containers/sidebar/sidebar.component.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@use 'demo-theme';
2-
@import 'utilities';
2+
@use 'utilities' as *;
33

44
.demo-sidebar {
55
padding: 75px 25px 0;

apps/demo/src/app/misc/help-box/help-box.component.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'utilities';
1+
@use 'utilities' as *;
22
@import 'theme';
33

44
.demo-help-box {
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'utilities';
1+
@use 'utilities' as *;
22

33
.demo-not-found {
44
padding-top: 50px;
@@ -8,9 +8,9 @@
88
}
99

1010
&__text {
11+
@include embolden();
1112
margin-bottom: 50px;
1213
text-align: center;
13-
@include embolden();
14-
@include uppercase();
14+
text-transform: uppercase;
1515
}
1616
}

apps/demo/src/app/newsletter/newsletter.component.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@use 'demo-theme';
2-
@import 'utilities';
2+
@use 'utilities' as *;
33

44
:host {
55
display: block;
@@ -33,10 +33,10 @@
3333

3434
&__title {
3535
@include embolden();
36-
@include uppercase();
3736
font-size: 1.5rem;
3837
margin: 0;
3938
padding-bottom: 15px;
39+
text-transform: uppercase;
4040
}
4141

4242
&__right {

apps/demo/src/app/product/components/add-to-cart/add-to-cart.component.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'utilities';
1+
@use 'utilities' as *;
22

33
.demo-add-to-cart {
44
display: inline-block;

0 commit comments

Comments
 (0)