@tzslot/theme 1.1.0 → 1.2.0

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": "@tzslot/theme",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "An optional stylesheet for the tzslot components. Plain CSS, no framework.",
5
5
  "license": "MIT",
6
6
  "main": "./tzslot.css",
package/tzslot.css CHANGED
@@ -74,7 +74,10 @@
74
74
  .tz-field__panel,
75
75
  .tz-field__backdrop,
76
76
  .tz-dtr,
77
- .tz-daily {
77
+ .tz-daily,
78
+ .tz-dateinput,
79
+ .tz-time,
80
+ .tz-timeselect {
78
81
  color-scheme: var(--tz-color-scheme, light dark);
79
82
  color: var(--tz-fg);
80
83
  font: var(--tz-font);
package/tzslot.scss CHANGED
@@ -142,7 +142,17 @@ $emit: true !default;
142
142
  .tz-field__panel,
143
143
  .tz-field__backdrop,
144
144
  .tz-dtr,
145
- .tz-daily {
145
+ .tz-daily,
146
+ /* The three that can stand on their own outside a panel. A widget inside a
147
+ field inherits color-scheme from it — color-scheme is an inherited
148
+ property — which is why these went unnoticed: on a documentation page
149
+ there is always a field above them. Dropped into a form of their own on a
150
+ dark page they had none, so every light-dark() fell to its light half and
151
+ the control came out white. Measured in Chrome with html.dark: .tz-field
152
+ resolved dark and #18181b, .tz-timeselect and .tz-time normal and white. */
153
+ .tz-dateinput,
154
+ .tz-time,
155
+ .tz-timeselect {
146
156
  color-scheme: var(--tz-color-scheme, light dark);
147
157
  color: var(--tz-fg);
148
158
  font: var(--tz-font);