@igo2/sdg-core 1.0.0-next.95 → 1.0.0-next.96

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.95",
3
+ "version": "1.0.0-next.96",
4
4
  "license": "LiLiQ-R",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,6 +8,7 @@
8
8
  @use './input';
9
9
  @use './sidenav';
10
10
  @use './radio-button';
11
+ @use './tab';
11
12
 
12
13
  @mixin overrides() {
13
14
  @include button.overrides();
@@ -20,4 +21,5 @@
20
21
  @include input.overrides();
21
22
  @include sidenav.overrides();
22
23
  @include radio-button.overrides();
24
+ @include tab.overrides();
23
25
  }
@@ -0,0 +1,95 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin overrides() {
4
+ .mat-mdc-tab-group {
5
+ $blue-piv: var(--sdg-color-blue-piv);
6
+ $blue-dark: var(--sdg-color-blue-dark);
7
+ $grey-pale: var(--sdg-color-grey-pale);
8
+
9
+ .mat-mdc-tab-labels {
10
+ column-gap: 24px;
11
+ }
12
+
13
+ .mdc-tab {
14
+ padding: 0 8px;
15
+ min-width: unset;
16
+
17
+ &--active {
18
+ font-weight: bold;
19
+ }
20
+
21
+ &:hover:not(&--active) {
22
+ .mdc-tab-indicator {
23
+ border-bottom: 4px solid $grey-pale;
24
+ }
25
+ }
26
+
27
+ &:focus {
28
+ .mdc-tab-indicator {
29
+ border: 2px solid var(--sdg-color-blue-light);
30
+ }
31
+ }
32
+ }
33
+
34
+ .mat-mdc-tab-header-pagination {
35
+ min-width: 40px;
36
+
37
+ &-after,
38
+ &-before {
39
+ padding: 0;
40
+ }
41
+
42
+ &-after {
43
+ .mat-mdc-tab-header-pagination-chevron {
44
+ transform: rotate(45deg) translateX(-2px);
45
+ height: 10px;
46
+ width: 10px;
47
+ }
48
+ }
49
+
50
+ &-before {
51
+ .mat-mdc-tab-header-pagination-chevron {
52
+ transform: rotate(225deg) translate(-2px, 2px);
53
+ height: 10px;
54
+ width: 10px;
55
+ }
56
+ }
57
+
58
+ &:hover {
59
+ background-color: $grey-pale;
60
+ }
61
+
62
+ &:active {
63
+ background-color: var(--sdg-color-blue-pale);
64
+ }
65
+ }
66
+
67
+ @include mat.tabs-overrides(
68
+ (
69
+ active-indicator-color: $blue-piv,
70
+ active-indicator-height: 4px,
71
+ active-hover-indicator-color: $blue-piv,
72
+ active-hover-label-text-color: $blue-dark,
73
+ active-focus-indicator-color: $blue-piv,
74
+ active-focus-label-text-color: $blue-dark,
75
+ active-ripple-color: transparent,
76
+ active-label-text-color: $blue-dark,
77
+ //
78
+ inactive-ripple-color: transparent,
79
+ inactive-label-text-color: $blue-piv,
80
+ inactive-focus-label-text-color: $blue-piv,
81
+ inactive-hover-label-text-color: $blue-piv,
82
+ //
83
+ divider-color: var(--sdg-color-grey-light),
84
+ divider-height: 1px,
85
+ //
86
+ label-text-size: var(--sdg-font-size-md),
87
+ label-text-line-height: var(--sdg-line-height-md),
88
+ //
89
+ pagination-icon-color: $blue-dark,
90
+ //
91
+ container-height: 40px
92
+ )
93
+ );
94
+ }
95
+ }