lostcoords-ui 0.14.2 → 0.14.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '008101436ed94725f9463034c431ad162a6b4687a30c033e150126ef3dc174c2'
4
- data.tar.gz: 181b62f179cd3632224768173969c49b66493b1a3dda105eb57d4f0ad3209e7c
3
+ metadata.gz: 27c237af634ec60537ff964703faf62608340f24f83d6ee9224f80c0b9649620
4
+ data.tar.gz: 7cf3f448f87b9ed7ec8bb6d670378c59d0320fa673ba7badc64bb9dcbf9f6f7e
5
5
  SHA512:
6
- metadata.gz: 455f0485cf9d05d917aaf286a36a2e33f7b30556075ce6863f1a291f0698d6aaab5bc3f4e08785fda7fc407f47e565ac35818bd2dd0928324cf58402ee3deb1c
7
- data.tar.gz: faa7f621521ee70239c5c00a15a34a83cf487e3e85e929fa3f0d2ea0d30ddcf178efb68e7a20003a258eb8fd1455016a1fae4893085ac0275cc2992f8b052e76
6
+ metadata.gz: 1fab12510a1d750e90711815773c613aeaed71eea35d679894a6370b22aaebadee9b84e665894136444f8b43f7668f7e1d632f5abc808767a23c73fe177ba6c4
7
+ data.tar.gz: b2c5ac6c41c1d8eeebc05d5de53e6c358d20b5ee0882c11c7cebedc4bb8e1bc56fc96ba08a62157a1e1b48a742540b467a4063d23826761585c63ce6d0b09fe0
data/README.md CHANGED
@@ -170,6 +170,15 @@ Omit `only` to register every library controller. Unknown identifiers raise befo
170
170
  registered, and repeated calls on the same application keep later overrides, so register defaults
171
171
  before application overrides.
172
172
 
173
+ ## Changes in 0.14.3
174
+
175
+ Nothing needs an edit, and one look changes:
176
+
177
+ - **An unchecked switch has a visible track on any surface.** It drew its track with `--input`, so on a host
178
+ whose cards share the field fill it showed only its thumb. The track is now `--lc-switch-track`, a
179
+ translucent foreground tint that shows on the page, a card or any other fill, in both themes. Set it to
180
+ restyle the track; checked switches still fill with `--primary`.
181
+
173
182
  ## Changes in 0.14.2
174
183
 
175
184
  Nothing needs an edit unless you override the disabled look, and one look changes:
@@ -8,7 +8,7 @@
8
8
  inline-size: calc(var(--spacing) * 9);
9
9
  block-size: calc(var(--spacing) * 5.5);
10
10
  border-radius: var(--radius-pill);
11
- background-color: var(--input);
11
+ background-color: var(--lc-switch-track);
12
12
  background-image: radial-gradient(circle closest-side, var(--lc-switch-thumb) calc(100% - var(--spacing) * 0.375), transparent 100%);
13
13
  background-size: calc(var(--spacing) * 5.5) calc(var(--spacing) * 5.5);
14
14
  background-repeat: no-repeat;
@@ -204,6 +204,10 @@
204
204
  --lc-scrim-veil: color-mix(in oklab, var(--background) 35%, transparent);
205
205
  --lc-input-hover: color-mix(in oklab, var(--foreground) 13%, var(--accent));
206
206
 
207
+ /* The unchecked switch track is a translucent tint, not a fill, so it shows on the page,
208
+ a card or any host surface, even one that matches --input. */
209
+ --lc-switch-track: color-mix(in oklab, var(--foreground) 20%, transparent);
210
+
207
211
  --lc-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
208
212
  --lc-shadow:
209
213
  0 1px 3px rgb(0 0 0 / 0.05),
@@ -1,5 +1,5 @@
1
1
  module Lostcoords
2
2
  module Ui
3
- VERSION = "0.14.2"
3
+ VERSION = "0.14.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lostcoords-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.2
4
+ version: 0.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lost Coordinates