@igo2/sdg-core 1.0.0-next.89 → 1.0.0-next.91

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igo2/sdg-core",
3
- "version": "1.0.0-next.89",
3
+ "version": "1.0.0-next.91",
4
4
  "license": "LiLiQ-R",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,122 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ $focus-color: var(--sdg-color-blue-light);
4
+ $white: var(--sdg-color-white);
5
+
6
+ @mixin overrides() {
7
+ $border-outline-width: 2px;
8
+
9
+ .mat-mdc-chip-set {
10
+ .mdc-evolution-chip {
11
+ margin: 0;
12
+ min-height: 40px;
13
+ max-height: 60px;
14
+ min-width: 56px;
15
+
16
+ &-set__chips {
17
+ margin: 0;
18
+ gap: 8px;
19
+ }
20
+
21
+ &__action-primary {
22
+ padding-left: 4px;
23
+ }
24
+
25
+ &:focus-visible {
26
+ border: $border-outline-width solid $white;
27
+ outline: $border-outline-width solid $focus-color;
28
+ }
29
+ }
30
+ }
31
+
32
+ .mdc-evolution-chip__action {
33
+ &--presentational {
34
+ cursor: pointer;
35
+ }
36
+
37
+ &--primary:hover::before {
38
+ border-color: $focus-color !important;
39
+ }
40
+
41
+ &--primary:focus::before {
42
+ border-width: $border-outline-width;
43
+ outline: $border-outline-width solid $focus-color;
44
+ }
45
+ }
46
+
47
+ .mat-mdc-standard-chip {
48
+ &.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action {
49
+ &--primary {
50
+ padding-left: 8px;
51
+ }
52
+
53
+ &--trailing {
54
+ padding-left: 4px;
55
+ padding-right: 6px;
56
+ }
57
+ }
58
+
59
+ & .mdc-evolution-chip__action {
60
+ &--primary {
61
+ padding-left: 8px;
62
+ padding-right: 8px;
63
+ }
64
+ }
65
+ }
66
+
67
+ .mat-mdc-chip-remove {
68
+ &::after {
69
+ left: 2px;
70
+ right: 4px;
71
+ }
72
+
73
+ .mat-icon {
74
+ z-index: 1;
75
+ }
76
+ }
77
+
78
+ .mat-mdc-chip {
79
+ $background-color: var(--sdg-color-blue-pale);
80
+ $text-color: var(--sdg-color-blue-piv);
81
+ $disabled-background-color: var(--sdg-color-grey-pale);
82
+ $disabled-color: var(--sdg-color-grey-normal);
83
+
84
+ @include mat.chips-overrides(
85
+ (
86
+ container-shape-radius: 0,
87
+
88
+ outline-width: 1px,
89
+ outline-color: $background-color,
90
+
91
+ focus-outline-color: $white,
92
+ focus-state-layer-color: transparent,
93
+ focus-state-layer-opacity: 0,
94
+
95
+ disabled-outline-color: $disabled-background-color,
96
+ disabled-label-text-color: $disabled-color,
97
+ disabled-container-opacity: 1,
98
+
99
+ hover-state-layer-opacity: 0,
100
+ hover-state-layer-color: transparent,
101
+
102
+ elevated-container-color: $background-color,
103
+ elevated-selected-container-color: $background-color,
104
+ elevated-disabled-container-color: $disabled-background-color,
105
+
106
+ with-trailing-icon-disabled-trailing-icon-opacity: 1,
107
+ with-trailing-icon-disabled-trailing-icon-color: $disabled-color,
108
+ with-trailing-icon-trailing-icon-color: $text-color,
109
+
110
+ label-text-color: $text-color,
111
+ label-text-weight: 600,
112
+ label-text-line-height: var(--sdg-line-height-sm),
113
+ label-text-size: var(--sdg-font-size-sm),
114
+ trailing-action-focus-state-layer-opacity: 1,
115
+ trailing-action-hover-state-layer-opacity: 1,
116
+ trailing-action-state-layer-color: var(--sdg-color-grey-light),
117
+ trailing-action-focus-opacity: 1,
118
+ trailing-action-opacity: 1
119
+ )
120
+ );
121
+ }
122
+ }
@@ -1,5 +1,6 @@
1
1
  @use './button';
2
2
  @use './checkbox';
3
+ @use './chip';
3
4
  @use './dialog';
4
5
  @use './divider';
5
6
  @use './form-field';
@@ -11,6 +12,7 @@
11
12
  @mixin overrides() {
12
13
  @include button.overrides();
13
14
  @include checkbox.overrides();
15
+ @include chip.overrides();
14
16
  @include dialog.overrides();
15
17
  @include divider.overrides();
16
18
  @include form-field.overrides();