@smitag/angular-shared-ui 18.1.15 → 18.1.16

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/README.md CHANGED
@@ -12,10 +12,11 @@ This repository contains themes for [Angular Material](https://github.com/angula
12
12
  @use '@smitag/angular-shared-ui/src/lib/styles/styles';
13
13
  @use '@smitag/angular-shared-ui/src/lib/styles/themes/default';
14
14
  ```
15
- ## Applying the theme background
15
+ ## Applying the theme color
16
16
 
17
- If you want to apply the theme background to html elements, set the property color to `primary`.
17
+ If you want to apply the theme primary color to html elements, set the class to `theme-color-primary`.
18
+ For the secondary color use `theme-color-secondary`.
18
19
 
19
20
  ```html
20
- <button mat-raised-button color="primary">save</button>
21
+ <mat-icon class="theme-color-primary" fontSet="far" fontIcon="fa-edit"></mat-icon>
21
22
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@smitag/angular-shared-ui",
3
3
  "email": "benjamin.speidel@smartinsurtech.de",
4
- "version": "18.1.15",
4
+ "version": "18.1.16",
5
5
  "license": "MIT",
6
6
  "description": "Styling elements and methods shared by all frontends",
7
7
  "man": "README.md",
@@ -2,6 +2,7 @@
2
2
  .mat-mdc-card-title.colored {
3
3
  background-color: rgba($secondary, 0.1);
4
4
  color: $primary;
5
+ margin-bottom: 0 !important;
5
6
  }
6
7
 
7
8
  a,
@@ -17,16 +18,17 @@
17
18
  background-color: $primary;
18
19
  }
19
20
 
20
- .mdc-icon-button.mat-primary,
21
- .theme-color-primary,
22
- .mat-primary {
21
+ .theme-color-primary {
23
22
  color: $primary;
24
23
  }
25
24
 
26
- .mat-mdc-tab.mdc-tab--active,
27
- .mdc-tab__text-label {
25
+ .theme-color-secondary {
26
+ color: $secondary;
27
+ }
28
+
29
+ .mat-mdc-tab.mdc-tab--active .mdc-tab__text-label {
28
30
  color: $primary;
29
- }
31
+ }
30
32
  }
31
33
 
32
34
  @mixin whiteToolbar($primary, $second-color) {