@firestitch/style 18.4.2 → 18.4.3

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": "@firestitch/style",
3
- "version": "18.4.2",
3
+ "version": "18.4.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Firestitch/ngx-style"
@@ -95,10 +95,32 @@
95
95
  --mdc-switch-selected-hover-track-color: var(--brand-primary-color, #E0E2EC);
96
96
  --mdc-switch-selected-focus-track-color: var(--brand-primary-color, #E0E2EC);
97
97
  --mdc-switch-unselected-hover-track-color: #E0E2EC;
98
- --mat-optgroup-label-text-color: #AEAEAE;
98
+ --mat-optgroup-label-text-color: #AEAEAE;
99
99
  }
100
100
  }
101
101
 
102
+ // AN ICON ON A BUTTON THAT PAINTS ITS OWN BACKGROUND TAKES THE BUTTON'S INK.
103
+ //
104
+ // Material paints every glyph with mat-icon { color: var(--mat-icon-color,
105
+ // inherit) }. An app that tones its bare icons down -- --mat-icon-color set to
106
+ // a muted grey at :root -- reaches the icon inside a fab or a filled button
107
+ // too, and the grey beats the foreground the button chose for its own
108
+ // container: a grey × on a brand-coloured mini fab. A bare icon sits on the
109
+ // page and should follow the page; one on a filled container sits on the
110
+ // button and must follow the button.
111
+ //
112
+ // `initial` empties the token here, so Material's own fallback, inherit,
113
+ // takes the button's foreground. Text, outlined and icon buttons have no
114
+ // container and are left alone.
115
+ .mat-mdc-fab,
116
+ .mat-mdc-mini-fab,
117
+ .mat-mdc-extended-fab,
118
+ .mat-mdc-unelevated-button,
119
+ .mat-mdc-raised-button,
120
+ .mat-tonal-button {
121
+ --mat-icon-color: initial;
122
+ }
123
+
102
124
  .mat-mdc-dialog-content:has(.mat-mdc-form-field.mat-form-field-appearance-outline):not(:has(.mat-mdc-tab-group)):before,
103
125
  .mat-mdc-tab-group .mat-mdc-tab-body-content:has(.mat-mdc-form-field.mat-form-field-appearance-outline):not(:has(.mat-mdc-tab-group)):before {
104
126
  padding-top: 5px;