@swisspost/design-system-styles 6.0.0 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,6 @@
14
14
  background: none;
15
15
  color: inherit;
16
16
  font: inherit;
17
- line-height: normal;
18
17
  user-select: none;
19
18
  appearance: button; // for input
20
19
  }
@@ -32,6 +32,7 @@
32
32
  font-size: form-feedback.$form-feedback-font-size;
33
33
  }
34
34
 
35
+ // Deprecated
35
36
  .#{$state}-tooltip {
36
37
  display: none;
37
38
  position: absolute;
@@ -43,7 +44,7 @@
43
44
  border-radius: tooltips.$tooltip-border-radius;
44
45
  color: color-contrast($color);
45
46
  font-size: tooltips.$tooltip-font-size;
46
- line-height: type.$line-height-base;
47
+ line-height: type.$line-height-copy;
47
48
 
48
49
  /* Keeping borders gray while maintaining a green background on tooltips */
49
50
  @if ($state == 'valid') {
package/mixins/_type.scss CHANGED
@@ -8,35 +8,24 @@
8
8
  @use './../functions/utilities';
9
9
  @use './../themes/bootstrap/core' as *;
10
10
 
11
- @mixin font-curve($curve-size: 'regular') {
12
- $curve: map.get(type.$font-curves, $curve-size);
11
+ @mixin font-curve($curve-size: 'regular', $curve-map: type.$font-curves) {
12
+ $curve: map.get($curve-map, $curve-size);
13
13
 
14
14
  @if ($curve) {
15
15
  $font-cache: 0;
16
- $line-height-cache: 0;
17
16
 
18
17
  @each $key, $value in $curve {
19
- // Get line height corresponding to font size
20
- $i: list.index(map.values(type.$font-sizes), $value);
21
- $lh: list.nth(map.values(type.$line-heights), $i);
22
-
23
18
  @if ($key == 'xs') {
24
19
  font-size: $value;
25
- line-height: $lh;
26
20
  } @else {
27
21
  @if ($font-cache != $value) {
28
22
  @include media-breakpoint-up($key) {
29
23
  font-size: $value;
30
-
31
- @if ($line-height-cache != $lh) {
32
- line-height: $lh;
33
- }
34
24
  }
35
25
  }
36
26
  }
37
27
 
38
28
  $font-cache: $value;
39
- $line-height-cache: $lh;
40
29
  }
41
30
  } @else {
42
31
  @error 'Font curve #{$curve-size} is not defined.';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swisspost/design-system-styles",
3
- "version": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "description": "Design System Styles for the Swiss Post web platform.",
5
5
  "author": "Swiss Post <oss@post.ch>",
6
6
  "license": "Apache-2.0",
@@ -20,22 +20,22 @@
20
20
  "@angular-devkit/core": "<=15.0.4",
21
21
  "@angular-devkit/schematics": "<=15.0.4",
22
22
  "@angular/core": "<=15.0.4",
23
- "@popperjs/core": "2.11.6",
23
+ "@popperjs/core": "2.11.7",
24
24
  "bootstrap": "5.2.3",
25
25
  "cheerio": "1.0.0-rc.12",
26
- "prettier": "2.8.4",
26
+ "prettier": "2.8.7",
27
27
  "typescript": "4.9.5"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@angular/compiler": "<=15.0.4",
31
- "@percy/cli": "1.20.3",
31
+ "@percy/cli": "1.21.0",
32
32
  "@percy/cypress": "3.1.2",
33
- "@types/node": "18.15.1",
33
+ "@types/node": "18.15.10",
34
34
  "autoprefixer": "10.4.14",
35
35
  "copyfiles": "2.4.1",
36
- "cypress": "12.7.0",
36
+ "cypress": "12.8.1",
37
37
  "cypress-storybook": "0.5.1",
38
- "glob": "9.2.1",
38
+ "glob": "9.3.2",
39
39
  "gulp": "4.0.2",
40
40
  "gulp-postcss": "9.0.1",
41
41
  "gulp-sass": "5.1.0",
@@ -43,13 +43,13 @@
43
43
  "npm-run-all": "4.1.5",
44
44
  "postcss": "8.4.21",
45
45
  "postcss-scss": "4.0.6",
46
- "rimraf": "4.4.0",
47
- "sass": "1.59.2",
48
- "stylelint": "15.2.0",
46
+ "rimraf": "4.4.1",
47
+ "sass": "1.60.0",
48
+ "stylelint": "15.3.0",
49
49
  "stylelint-config-prettier": "9.0.5",
50
50
  "stylelint-config-sass-guidelines": "9.0.1",
51
51
  "stylelint-prettier": "2.0.0",
52
- "stylelint-scss": "4.4.0"
52
+ "stylelint-scss": "4.6.0"
53
53
  },
54
54
  "sass": {
55
55
  "includePaths": [
@@ -69,7 +69,6 @@
69
69
  "build": "npm-run-all --parallel styles:build schematics:build",
70
70
  "styles:build": "gulp build",
71
71
  "test": "jest --onlyChanged",
72
- "snapshots": "percy exec -- cypress run --config-file ./cypress.snapshot.config.js",
73
72
  "clean": "rimraf out-tsc dist/*",
74
73
  "format": "prettier src/**/*.scss --write",
75
74
  "lint": "stylelint src/**/*.scss",
@@ -13,7 +13,6 @@
13
13
  height: badge.$badge-height;
14
14
  font-size: badge.$badge-font-size;
15
15
  font-weight: $badge-font-weight;
16
- line-height: 1;
17
16
  color: $badge-color;
18
17
  text-align: center;
19
18
  white-space: nowrap;
@@ -31,7 +30,6 @@
31
30
  background-color: badge.$badge-nested-bg-color;
32
31
  border-color: badge.$badge-nested-border-color;
33
32
  font-size: badge.$badge-nested-font-size;
34
- line-height: 1;
35
33
  }
36
34
 
37
35
  > .btn-close {
@@ -63,6 +63,13 @@ class NgbButtonGroupDeprecationUpdate {
63
63
  .forEach(attr => {
64
64
  $input.attr(attr.key, attr.value);
65
65
  });
66
+ // if the label uses an ngFor directive, move it to a ng-container wrapper
67
+ const ngFor = $label.attr('*ngFor');
68
+ if (ngFor) {
69
+ const $container = $(`<ng-container *ngFor="${ngFor}"></ng-container>`);
70
+ $label.wrap($container);
71
+ $label.removeAttr('*ngFor');
72
+ }
66
73
  // move the input before its label
67
74
  $label.before($input);
68
75
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../schematics/migrations/ngbootstrap/buttons/index.ts"],"names":[],"mappings":";;AAEA,mCAAoC;AACpC,wDAAwF;AACxF,gEAA8E;AAE9E;IACE,OAAO,IAAA,mCAAmB,EACxB,IAAI,+BAA+B,CACpC,CAAC;AACJ,CAAC;AAJD,4BAIC;AAED,MAAM,+BAA+B;IAArC;QACE,aAAQ,GAAG,YAAY,CAAC;IAqE1B,CAAC;IAnE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BACH,CAAC,CAAC,CAAC;gBAEL,yEAAyE;gBACzE,oBAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;oBAClC,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACpC,CAAC,CAAC,CAAC;aACJ;YAED,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE;gBACzB,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;gBACxB,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,CAAC;gBAEhD,4BAA4B;gBAC5B,MAAM,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;gBACpC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;gBAE/B,0CAA0C;gBAC1C,IAAI,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAChC,IAAI,CAAC,OAAO,EAAE;oBACZ,OAAO,GAAG,IAAA,mBAAU,GAAE,CAAC;oBACvB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;iBAC5B;gBACD,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;gBAE5B,kCAAkC;gBAClC,oBAAoB;qBACjB,OAAO,CAAC,IAAI,CAAC,EAAE;oBACd,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;gBACpC,CAAC,CAAC,CAAC;gBAEL,kCAAkC;gBAClC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YACxB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACF"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../schematics/migrations/ngbootstrap/buttons/index.ts"],"names":[],"mappings":";;AAEA,mCAAoC;AACpC,wDAAwF;AACxF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,CAAC;gBACpC,IAAI,KAAK,EAAE;oBACT,MAAM,UAAU,GAAG,CAAC,CAAC,yBAAyB,KAAK,mBAAmB,CAAC,CAAC;oBACxE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;oBACxB,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;iBAC7B;gBAED,kCAAkC;gBAClC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YACxB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACF"}
@@ -0,0 +1,52 @@
1
+ @use './type';
2
+
3
+ // Intended for use with min-width, mobile first, bottom up approach
4
+ $heading-sizes-h1: (
5
+ xs: type.$font-size-28,
6
+ sm: type.$font-size-32,
7
+ md: type.$font-size-40,
8
+ xxl: type.$font-size-48,
9
+ );
10
+
11
+ $heading-sizes-h2: (
12
+ xs: type.$font-size-24,
13
+ sm: type.$font-size-28,
14
+ md: type.$font-size-32,
15
+ xxl: type.$font-size-40,
16
+ );
17
+
18
+ $heading-sizes-h3: (
19
+ xs: type.$font-size-18,
20
+ sm: type.$font-size-20,
21
+ md: type.$font-size-24,
22
+ xxl: type.$font-size-28,
23
+ );
24
+
25
+ $heading-sizes-h4: (
26
+ xs: type.$font-size-16,
27
+ sm: type.$font-size-18,
28
+ md: type.$font-size-20,
29
+ xxl: type.$font-size-24,
30
+ );
31
+
32
+ $heading-sizes-h5: (
33
+ xs: type.$font-size-14,
34
+ sm: type.$font-size-16,
35
+ md: type.$font-size-18,
36
+ xxl: type.$font-size-20,
37
+ );
38
+
39
+ $heading-sizes-h6: (
40
+ xs: type.$font-size-14,
41
+ md: type.$font-size-16,
42
+ xxl: type.$font-size-18,
43
+ );
44
+
45
+ $heading-sizes: (
46
+ 'heading-sizes-h1': $heading-sizes-h1,
47
+ 'heading-sizes-h2': $heading-sizes-h2,
48
+ 'heading-sizes-h3': $heading-sizes-h3,
49
+ 'heading-sizes-h4': $heading-sizes-h4,
50
+ 'heading-sizes-h5': $heading-sizes-h5,
51
+ 'heading-sizes-h6': $heading-sizes-h6,
52
+ );
@@ -12,3 +12,4 @@
12
12
  @forward 'spacing';
13
13
  @forward 'type';
14
14
  @forward 'components';
15
+ @forward 'heading';
@@ -15,6 +15,7 @@ $font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mon
15
15
  monospace !default;
16
16
  $font-family-base: $font-family-sans-serif !default;
17
17
 
18
+ // Deprecated
18
19
  $font-size-tiny: sizing.px-to-rem(13px);
19
20
  $font-size-small: sizing.px-to-rem(15px);
20
21
  $font-size-regular: sizing.px-to-rem(16px);
@@ -27,22 +28,39 @@ $font-size-bigger-big: sizing.px-to-rem(40px);
27
28
  $font-size-small-huge: sizing.px-to-rem(48px);
28
29
  $font-size-huge: sizing.px-to-rem(56px);
29
30
 
30
- $line-height-tiny: 1.4;
31
- $line-height-small: 1.4;
32
- $line-height-regular: 1.4;
33
- $line-height-bigger-regular: 1.4;
34
- $line-height-medium: 1.4;
35
- $line-height-large: 1.1;
36
- $line-height-small-big: 1.1;
37
- $line-height-big: 1.1;
38
- $line-height-bigger-big: 1.1;
39
- $line-height-small-huge: 1.1;
40
- $line-height-huge: 1.1;
31
+ // New
32
+ $font-size-14: sizing.px-to-rem(14px);
33
+ $font-size-16: sizing.px-to-rem(16px);
34
+ $font-size-18: sizing.px-to-rem(18px);
35
+ $font-size-20: sizing.px-to-rem(20px);
36
+ $font-size-24: sizing.px-to-rem(24px);
37
+ $font-size-28: sizing.px-to-rem(28px);
38
+ $font-size-32: sizing.px-to-rem(32px);
39
+ $font-size-40: sizing.px-to-rem(40px);
40
+ $font-size-48: sizing.px-to-rem(48px);
41
+ $font-size-56: sizing.px-to-rem(56px);
42
+
43
+ $line-height-copy: 1.5;
44
+ $line-height-heading: 1.2;
45
+
46
+ // Deprecated
47
+ $line-height-tiny: $line-height-copy;
48
+ $line-height-small: $line-height-copy;
49
+ $line-height-regular: $line-height-copy;
50
+ $line-height-bigger-regular: $line-height-copy;
51
+ $line-height-medium: $line-height-copy;
52
+ $line-height-large: $line-height-heading;
53
+ $line-height-small-big: $line-height-heading;
54
+ $line-height-big: $line-height-heading;
55
+ $line-height-bigger-big: $line-height-heading;
56
+ $line-height-small-huge: $line-height-heading;
57
+ $line-height-huge: $line-height-heading;
41
58
 
42
59
  $font-weight-light: 300 !default; // Design System -> Frutiger Neue Light
43
60
  $font-weight-normal: 400 !default; // Design System -> Frutiger Neue Roman
44
- $font-weight-bold: 700 !default; // Design System -> Frutiger Neue Roman
61
+ $font-weight-bold: 700 !default; // Design System -> Frutiger Neue Bold
45
62
 
63
+ // Deprecated
46
64
  $font-sizes: (
47
65
  'tiny': $font-size-tiny,
48
66
  'small': $font-size-small,
@@ -57,6 +75,19 @@ $font-sizes: (
57
75
  'huge': $font-size-huge,
58
76
  );
59
77
 
78
+ $font-size-map: (
79
+ 14: $font-size-14,
80
+ 16: $font-size-16,
81
+ 18: $font-size-18,
82
+ 20: $font-size-20,
83
+ 24: $font-size-24,
84
+ 28: $font-size-28,
85
+ 32: $font-size-32,
86
+ 40: $font-size-40,
87
+ 48: $font-size-48,
88
+ 56: $font-size-56,
89
+ );
90
+
60
91
  $line-heights: (
61
92
  'tiny': $line-height-tiny,
62
93
  'small': $line-height-small,
@@ -71,6 +102,7 @@ $line-heights: (
71
102
  'huge': $line-height-huge,
72
103
  );
73
104
 
105
+ // Deprecated
74
106
  $font-curve-tiny: (
75
107
  'xs': $font-size-tiny,
76
108
  'sm': $font-size-tiny,
@@ -135,6 +167,7 @@ $font-curve-big: (
135
167
  'xxl': $font-size-small-huge,
136
168
  );
137
169
 
170
+ // Deprecated
138
171
  $font-curves: (
139
172
  'tiny': $font-curve-tiny,
140
173
  'small': $font-curve-small,
@@ -147,19 +180,23 @@ $font-curves: (
147
180
 
148
181
  $font-size-base: $font-size-regular !default;
149
182
  $font-weight-base: $font-weight-normal !default;
150
- $line-height-base: $line-height-regular !default;
183
+ $line-height-base: $line-height-copy;
184
+ $line-height-sm: $line-height-heading;
185
+ $line-height-lg: $line-height-copy;
151
186
 
152
187
  $headings-margin-bottom: (spacing.$spacer * 0.5) !default;
153
188
  $headings-font-family: inherit !default;
154
- $headings-font-weight: 300 !default;
155
- $headings-line-height: 1.2 !default;
189
+ $headings-font-weight: 700 !default;
190
+ $headings-line-height: $line-height-heading;
156
191
  $headings-color: inherit !default;
157
192
 
193
+ // Deprecated because unused
158
194
  $display1-size: 6rem !default;
159
195
  $display2-size: 5.5rem !default;
160
196
  $display3-size: 4.5rem !default;
161
197
  $display4-size: 3.5rem !default;
162
198
 
199
+ // Deprecated because unused
163
200
  $display1-weight: 300 !default;
164
201
  $display2-weight: 300 !default;
165
202
  $display3-weight: 300 !default;
@@ -24,7 +24,7 @@ $accordion-button-active-bg: transparent !default;
24
24
  $accordion-button-active-color: color.$black !default;
25
25
  $accordion-button-hover-color: color.$black !default;
26
26
  $accordion-button-font-weight: type.$font-weight-bold !default;
27
- $accordion-button-line-height: spacing.$size-large !default;
27
+ $accordion-button-line-height: type.$line-height-copy !default;
28
28
 
29
29
  $accordion-icon-width: spacing.$size-large !default;
30
30
  $accordion-icon-transform: rotate(180deg) !default;
@@ -33,7 +33,7 @@ $alert-list: (
33
33
  'info' color.$info 2106
34
34
  ); // Design System only
35
35
 
36
- $alert-line-height: type.$line-height-base; // Design System only
36
+ $alert-line-height: type.$line-height-copy; // Design System only
37
37
  $alert-text-space-between: spacing.$size-micro;
38
38
 
39
39
  $alert-icon-size: spacing.$size-small-huge; // Design System only
@@ -16,19 +16,19 @@ $input-btn-border-width-rem: sizing.px-to-rem($input-btn-border-width);
16
16
 
17
17
  $input-btn-padding-y: spacing.$size-regular - $input-btn-border-width-rem !default;
18
18
  $input-btn-padding-x: spacing.$size-small-large - $input-btn-border-width-rem !default;
19
- $input-btn-line-height: type.$line-height-base !default;
19
+ $input-btn-line-height: type.$line-height-copy !default;
20
20
 
21
21
  $input-btn-padding-y-sm: spacing.$size-mini - $input-btn-border-width-rem !default;
22
22
  $input-btn-padding-x-sm: spacing.$size-regular - $input-btn-border-width-rem !default;
23
- $input-btn-line-height-sm: type.$line-height-small !default;
23
+ $input-btn-line-height-sm: type.$line-height-copy !default;
24
24
 
25
25
  $input-btn-padding-y-rg: spacing.$size-small-regular - $input-btn-border-width-rem !default;
26
26
  $input-btn-padding-x-rg: spacing.$size-regular - $input-btn-border-width-rem !default;
27
- $input-btn-line-height-rg: type.$line-height-regular !default;
27
+ $input-btn-line-height-rg: type.$line-height-copy !default;
28
28
 
29
29
  $input-btn-padding-y-lg: spacing.$size-small-large - $input-btn-border-width-rem !default;
30
30
  $input-btn-padding-x-lg: spacing.$size-large - $input-btn-border-width-rem !default;
31
- $input-btn-line-height-lg: type.$line-height-large !default;
31
+ $input-btn-line-height-lg: type.$line-height-copy !default;
32
32
 
33
33
  $input-btn-focus-width: 0.125rem !default; // 2px
34
34
  $input-btn-focus-color: rgba(color.$gray-80, 0.25) !default;
@@ -45,7 +45,7 @@ $form-check-label-cursor: pointer !default;
45
45
  $form-check-label-color: forms.$form-label-color !default;
46
46
  $form-check-label-padding-top: (
47
47
  $form-check-input-width + sizing.px-to-rem($form-check-input-border-width) -
48
- type.$line-height-base
48
+ type.$line-height-copy
49
49
  ) * 0.5 !default;
50
50
  $form-check-label-padding-x: spacing.$size-mini !default;
51
51
  $form-check-label-padding-start: $form-check-label-padding-top 0 0 $form-check-label-padding-x !default;
@@ -32,7 +32,7 @@ $form-switch-linear-gradient: linear-gradient(
32
32
  );
33
33
  $form-switch-linear-gradient-size: (2 * $form-switch-width - $form-switch-height)
34
34
  $form-switch-height;
35
- $form-switch-label-padding-top: ($form-switch-height - type.$line-height-base) * 0.5 !default;
35
+ $form-switch-label-padding-top: ($form-switch-height - type.$line-height-copy) * 0.5 !default;
36
36
  $form-switch-label-padding-x: spacing.$size-regular !default;
37
37
  $form-switch-label-padding-start: $form-switch-label-padding-top 0 0 $form-switch-label-padding-x !default;
38
38
  $form-switch-label-padding-end: $form-switch-label-padding-top $form-switch-label-padding-x 0 0 !default;
@@ -17,19 +17,19 @@ $form-label-color: rgba(var(--post-contrast-color-rgb), 0.8) !default;
17
17
 
18
18
  $input-padding-y: button.$input-btn-padding-y !default;
19
19
  $input-padding-x: button.$input-btn-padding-x !default;
20
- $input-line-height: type.$line-height-regular !default;
20
+ $input-line-height: type.$line-height-copy !default;
21
21
 
22
22
  $input-padding-y-sm: button.$input-btn-padding-y-sm !default;
23
23
  $input-padding-x-sm: button.$input-btn-padding-x-sm !default;
24
- $input-line-height-sm: type.$line-height-regular !default;
24
+ $input-line-height-sm: type.$line-height-copy !default;
25
25
 
26
26
  $input-padding-y-rg: button.$input-btn-padding-y-rg !default;
27
27
  $input-padding-x-rg: button.$input-btn-padding-x-rg !default;
28
- $input-line-height-rg: type.$line-height-regular !default;
28
+ $input-line-height-rg: type.$line-height-copy !default;
29
29
 
30
30
  $input-padding-y-lg: spacing.$size-small-large !default;
31
31
  $input-padding-x-lg: button.$input-btn-padding-x-lg !default;
32
- $input-line-height-lg: type.$line-height-regular !default;
32
+ $input-line-height-lg: type.$line-height-copy !default;
33
33
 
34
34
  $input-bg: color.$white !default;
35
35
  $input-disabled-bg: rgba(var(--post-contrast-color-inverted-rgb), 0.6) !default;
@@ -108,7 +108,7 @@ $form-file-button-hover-bg: $input-bg;
108
108
  $form-floating-height: $input-height-lg;
109
109
  $form-floating-padding-x: $input-padding-x-lg;
110
110
  $form-floating-padding-y: $input-padding-y-lg;
111
- $form-floating-line-height: type.$line-height-base;
111
+ $form-floating-line-height: type.$line-height-copy;
112
112
  $form-floating-input-padding-t: spacing.$size-large;
113
113
  $form-floating-input-padding-b: 0;
114
114
  $form-floating-label-opacity: 1;
@@ -23,7 +23,7 @@ $modal-footer-margin-between: 0.5rem !default;
23
23
  $modal-dialog-margin: spacing.$size-small-regular !default;
24
24
  $modal-dialog-margin-y-sm-up: spacing.$size-big !default;
25
25
 
26
- $modal-title-line-height: type.$line-height-base !default;
26
+ $modal-title-line-height: type.$line-height-copy !default;
27
27
 
28
28
  $modal-content-color: null !default;
29
29
  $modal-content-bg: color.$white !default;
@@ -51,5 +51,5 @@ $nav-divider-margin-y: (spacing.$spacer * 0.5) !default;
51
51
 
52
52
  // Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link
53
53
  $nav-link-height: (
54
- type.$font-size-base * type.$line-height-base + $nav-link-padding-y * 2
54
+ type.$font-size-base * type.$line-height-copy + $nav-link-padding-y * 2
55
55
  ) !default;
@@ -12,7 +12,7 @@ $navbar-padding-x: spacing.$spacer !default;
12
12
  $navbar-nav-link-padding-x: spacing.$size-small-huge !default;
13
13
 
14
14
  $navbar-brand-font-size: type.$font-size-bigger-regular !default;
15
- $navbar-brand-height: $navbar-brand-font-size * type.$line-height-base !default;
15
+ $navbar-brand-height: $navbar-brand-font-size * type.$line-height-copy !default;
16
16
  $navbar-brand-padding-y: (nav.$nav-link-height - $navbar-brand-height) * 0.5 !default;
17
17
 
18
18
  $navbar-toggler-padding-y: 0.25rem !default;