@firestitch/style 18.1.1 → 18.1.2

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.1.1",
3
+ "version": "18.1.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Firestitch/ngx-style"
@@ -44,9 +44,23 @@
44
44
  // =========================================================================
45
45
  // CHECKBOX
46
46
  // =========================================================================
47
- // The unselected box is an OUTLINE, so it takes the hairline rather than a
48
- // text colour: it is a drawn edge, and at text strength it reads as heavy.
49
- --mat-checkbox-unselected-icon-color: var(--fs-hairline-strong, light-dark(rgba(0, 0, 0, 0.38), rgba(255, 255, 255, 0.38)));
47
+ // The unselected box is a CONTROL OUTLINE, so it takes a text colour rather
48
+ // than the hairline.
49
+ //
50
+ // It was the hairline until 18.1.2, on the reasoning that a box outline is a
51
+ // drawn edge. That was wrong, and wrong in a way this package cannot see:
52
+ // --fs-hairline-strong means "a fold in a surface" - a card edge, a divider,
53
+ // a progress track - and an app is entitled to tune it down to almost
54
+ // nothing for exactly that purpose. CloudCure sets it to 22% white, which is
55
+ // correct for a divider and leaves an empty checkbox all but invisible.
56
+ //
57
+ // An empty checkbox is not a fold in a surface. It is the control's entire
58
+ // resting state, the only thing telling the user there is something here to
59
+ // click, and it must read as a line at any value an app might reasonably
60
+ // pick for its dividers. --fs-color-text-muted is the token that means
61
+ // "visible but secondary", which is the job, and it lands near Material's
62
+ // own default (0.54) rather than under it.
63
+ --mat-checkbox-unselected-icon-color: var(--fs-color-text-muted, light-dark(rgba(0, 0, 0, 0.54), #97A5A6));
50
64
  --mat-checkbox-unselected-hover-icon-color: var(--fs-color-text-muted, light-dark(rgba(0, 0, 0, 0.54), #97A5A6));
51
65
  --mat-checkbox-unselected-focus-icon-color: var(--fs-color-text-muted, light-dark(rgba(0, 0, 0, 0.54), #97A5A6));
52
66
  --mat-checkbox-unselected-pressed-icon-color: var(--fs-color-text-muted, light-dark(rgba(0, 0, 0, 0.54), #97A5A6));
@@ -76,7 +90,7 @@
76
90
  // =========================================================================
77
91
  // Same three questions as the checkbox, same answers - the two controls
78
92
  // differ in shape and in whether they are exclusive, never in colour.
79
- --mat-radio-unselected-icon-color: var(--fs-hairline-strong, light-dark(rgba(0, 0, 0, 0.38), rgba(255, 255, 255, 0.38)));
93
+ --mat-radio-unselected-icon-color: var(--fs-color-text-muted, light-dark(rgba(0, 0, 0, 0.54), #97A5A6));
80
94
  --mat-radio-unselected-hover-icon-color: var(--fs-color-text-muted, light-dark(rgba(0, 0, 0, 0.54), #97A5A6));
81
95
  --mat-radio-unselected-focus-icon-color: var(--fs-color-text-muted, light-dark(rgba(0, 0, 0, 0.54), #97A5A6));
82
96
  --mat-radio-unselected-pressed-icon-color: var(--fs-color-text-muted, light-dark(rgba(0, 0, 0, 0.54), #97A5A6));
@@ -191,7 +205,7 @@
191
205
  // FULL is the variant that draws a box; MINIMAL draws only a checkmark with
192
206
  // no container. Both are themed: an app choosing either gets a control that
193
207
  // reads, and the two never disagree about what "selected" looks like.
194
- --mat-pseudo-checkbox-full-unselected-icon-color: var(--fs-hairline-strong, light-dark(rgba(0, 0, 0, 0.38), rgba(255, 255, 255, 0.38)));
208
+ --mat-pseudo-checkbox-full-unselected-icon-color: var(--fs-color-text-muted, light-dark(rgba(0, 0, 0, 0.54), #97A5A6));
195
209
  --mat-pseudo-checkbox-full-selected-icon-color: var(--fs-color-primary, #1B474E);
196
210
  --mat-pseudo-checkbox-full-selected-checkmark-color: var(--fs-surface-background, light-dark(#FFFFFF, #232428));
197
211