@onemrvapublic/design-system-theme 18.2.3 → 18.2.4-develop.10

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.
@@ -83,6 +83,8 @@
83
83
  &:not(.mat-mdc-fab):not(.mat-mdc-mini-fab) {
84
84
  border-radius: $onemrva-button-border-radius;
85
85
  padding: $spacer 2 * $spacer;
86
+ vertical-align: middle;
87
+ text-decoration: none;
86
88
 
87
89
  &.mat-mdc-outlined-button {
88
90
  padding: $spacer 2 * $spacer;
@@ -90,9 +92,6 @@
90
92
  --mat-outlined-button-state-layer-color: µ.primary('500-contrast');
91
93
  }
92
94
  }
93
-
94
- vertical-align: middle;
95
- text-decoration: none;
96
95
  .mat-icon {
97
96
  padding: 0;
98
97
  margin: 0 $spacer 0 -8px;
@@ -40,11 +40,10 @@
40
40
  }
41
41
 
42
42
  &:hover {
43
+ cursor: pointer;
43
44
  mat-mdc-card-title {
44
45
  text-decoration: underline;
45
46
  }
46
-
47
- cursor: pointer;
48
47
  }
49
48
 
50
49
  .mat-mdc-card-title + .mat-mdc-card-content {
@@ -70,6 +70,7 @@
70
70
  }
71
71
 
72
72
  .mdc-checkbox {
73
+ padding: 12px;
73
74
  .mdc-checkbox__native-control:enabled:checked,
74
75
  .mdc-checkbox__native-control:enabled:indeterminate {
75
76
  ~ .mdc-checkbox__background {
@@ -87,8 +88,6 @@
87
88
  }
88
89
  }
89
90
 
90
- padding: 12px;
91
-
92
91
  .mdc-checkbox__background {
93
92
  width: 20px;
94
93
  height: 20px;
@@ -3,6 +3,11 @@
3
3
  @use '@angular/material' as mat;
4
4
 
5
5
  @mixin theme($theme) {
6
+ & {
7
+ --mat-app-body-large-font: 16px;
8
+ --mat-expansion-container-text-size: 16px;
9
+ --mat-expansion-header-text-size: 16px;
10
+ }
6
11
  @include mat.expansion-base($theme);
7
12
  @include mat.expansion-theme($theme);
8
13
 
@@ -22,8 +22,10 @@
22
22
  }
23
23
 
24
24
  @mixin theme($theme) {
25
- --mat-form-field-container-height: 44px;
26
- --mat-form-field-outlined-label-text-populated-size: 12px;
25
+ & {
26
+ --mat-form-field-container-height: 44px;
27
+ --mat-form-field-outlined-label-text-populated-size: 12px;
28
+ }
27
29
 
28
30
  @include mat.input-base($theme);
29
31
  @include mat.input-theme($theme);
@@ -28,9 +28,12 @@
28
28
  padding-bottom: 16px;
29
29
  }
30
30
 
31
- .mat-mdc-row:last-child {
32
- .mat-mdc-cell {
33
- border-bottom: none;
31
+ .mat-mdc-row {
32
+ --mat-table-row-item-label-text-size: 16px;
33
+ &:last-child {
34
+ .mat-mdc-cell {
35
+ border-bottom: none;
36
+ }
34
37
  }
35
38
  }
36
39
 
@@ -54,10 +57,10 @@
54
57
  line-height: 22px;
55
58
  padding-top: 8px;
56
59
  padding-bottom: 8px;
60
+ border-bottom: 1px solid µ.primary($theme, 100);
57
61
  &:not(:last-child) {
58
62
  padding-right: 12px;
59
63
  }
60
- border-bottom: 1px solid µ.primary($theme, 100);
61
64
  mat-error {
62
65
  line-height: 48px;
63
66
  color: µ.error($theme, 500);
package/index.scss CHANGED
@@ -136,14 +136,18 @@
136
136
  @include mat.core();
137
137
  @include mat.core-theme(variables.$onemrva-theme);
138
138
  @include mat.core-base(variables.$onemrva-theme);
139
- //@include mat.typography-hierarchy(variables.$onemrva-theme); // this breaks the font styles
139
+ // TODO: This should be the way to do it but it does not seem to work correctly when used via npm import
140
+ //@include mat.typography-hierarchy(
141
+ // variables.$onemrva-theme
142
+ //);
140
143
  }
141
144
 
142
145
  // Base for Web components
143
- @mixin base() {
144
- @include core();
145
- @include fonts.theme(variables.$onemrva-theme);
146
+ @mixin base($production: true) {
147
+ @include reset();
148
+ @include fonts.theme(variables.$onemrva-theme, $production);
146
149
  @include links.theme(variables.$onemrva-theme);
150
+ @include core();
147
151
  }
148
152
 
149
153
  // Load everything (size does not matter)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onemrvapublic/design-system-theme",
3
- "version": "v18.2.3",
3
+ "version": "v18.2.4-develop.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -3,6 +3,12 @@
3
3
  @use '../components/µ';
4
4
 
5
5
  @mixin theme($onemrva-theme, $production: true) {
6
+ $typography: map.get($onemrva-theme, 'typography');
7
+ & {
8
+ color: µ.grayscale($onemrva-theme, 900);
9
+ @include mat.m2-typography-level($typography, 'body-1');
10
+ }
11
+
6
12
  @if ($production) {
7
13
  @at-root {
8
14
  @import url('https://cdn.services.rvaonem.fgov.be/font/poppins/import.css');
@@ -17,8 +23,14 @@
17
23
  }
18
24
  }
19
25
 
20
- $typography: map.get($onemrva-theme, 'typography');
21
- @include mat.m2-typography-level($typography, 'body-1');
26
+ .mat-small {
27
+ @include mat.m2-typography-level($typography, 'body-2');
28
+ }
29
+
30
+ .mat-body-strong,
31
+ .mat-semibold {
32
+ font-weight: 600;
33
+ }
22
34
 
23
35
  .heading {
24
36
  @include mat.m2-typography-level($typography, 'headline-1');