@onemrvapublic/design-system-theme 18.2.4-develop.6 → 18.2.4-develop.8

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,10 +3,12 @@
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
+ }
6
10
  @include mat.expansion-base($theme);
7
11
  @include mat.expansion-theme($theme);
8
- --mat-app-body-large-font: 16px;
9
- --mat-expansion-container-text-size: 16px;
10
12
 
11
13
  .mat-expansion-panel {
12
14
  &:not([class*='mat-elevation-z']) {
@@ -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);
@@ -54,10 +54,10 @@
54
54
  line-height: 22px;
55
55
  padding-top: 8px;
56
56
  padding-bottom: 8px;
57
+ border-bottom: 1px solid µ.primary($theme, 100);
57
58
  &:not(:last-child) {
58
59
  padding-right: 12px;
59
60
  }
60
- border-bottom: 1px solid µ.primary($theme, 100);
61
61
  mat-error {
62
62
  line-height: 48px;
63
63
  color: µ.error($theme, 500);
package/index.scss CHANGED
@@ -136,16 +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(
140
- variables.$onemrva-theme
141
- ); // 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
+ //);
142
143
  }
143
144
 
144
145
  // Base for Web components
145
- @mixin base() {
146
- @include core();
147
- @include fonts.theme(variables.$onemrva-theme);
146
+ @mixin base($production: true) {
147
+ @include reset();
148
+ @include fonts.theme(variables.$onemrva-theme, $production);
148
149
  @include links.theme(variables.$onemrva-theme);
150
+ @include core();
149
151
  }
150
152
 
151
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.4-develop.6",
3
+ "version": "v18.2.4-develop.8",
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,10 +23,6 @@
17
23
  }
18
24
  }
19
25
 
20
- $typography: map.get($onemrva-theme, 'typography');
21
- @include mat.m2-typography-level($typography, 'body-1');
22
- color: µ.grayscale($onemrva-theme, 900);
23
-
24
26
  .mat-small {
25
27
  @include mat.m2-typography-level($typography, 'body-2');
26
28
  }