@coolon/angular-ui-powerups 16.1.0-alpha.299 → 16.1.0-alpha.300

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.
@@ -1,3 +1,21 @@
1
+ @use 'sass:map';
2
+ @use '@angular/material' as mat;
3
+
1
4
  :root {
2
5
  --aup-command-face-icon-gap: 8px;
3
6
  }
7
+
8
+ // A face's colour applies in a menu as it does on a button, so a Delete face with `color: warn`
9
+ // reads as warn wherever it is shown. Keyed on the colour attribute aup-command-face sets on itself,
10
+ // which covers aup's own menus and hand-built mat-menus alike. A disabled item keeps Material's
11
+ // faded look.
12
+ @mixin apply-theme($color-config, $typography-config) {
13
+ @each $palette in (primary, accent, warn) {
14
+ $color: mat.get-color-from-palette(map.get($color-config, $palette));
15
+
16
+ .mat-mdc-menu-item:not([disabled]) aup-command-face[color=#{$palette}] {
17
+ color: $color;
18
+ --mat-menu-item-icon-color: #{$color};
19
+ }
20
+ }
21
+ }
@@ -26,6 +26,7 @@
26
26
  @include activities.apply-theme($color-config, $typography);
27
27
  @include pills.apply-theme($color-config, $typography);
28
28
  @include place.apply-theme($color-config, $typography);
29
+ @include commands.apply-theme($color-config, $typography);
29
30
 
30
31
  :root {
31
32
  --aup-default-padding: var(--default-padding, 16px);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-alpha.299",
3
+ "version": "16.1.0-alpha.300",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.9",
6
6
  "@angular/common": "^16.2.9",