@betorigami/game-ui-shared 9.1.1 → 9.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.
Files changed (2) hide show
  1. package/dist/index.mjs +8 -16
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -274,22 +274,22 @@ const hp = [1, 2, 3, 4, 8], pp = [2.7, 5.3], Hs = 2, Ns = [
274
274
  }
275
275
 
276
276
  ::selection {
277
- background-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
277
+ background-color: var(--selection-color, color-mix(in srgb, var(--focus-color, var(--primary-color)) 30%, transparent));
278
278
  color: inherit;
279
279
  }
280
280
 
281
281
  ::-moz-selection {
282
- background-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
282
+ background-color: var(--selection-color, color-mix(in srgb, var(--focus-color, var(--primary-color)) 30%, transparent));
283
283
  color: inherit;
284
284
  }
285
285
 
286
286
  :host *::selection {
287
- background-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
287
+ background-color: var(--selection-color, color-mix(in srgb, var(--focus-color, var(--primary-color)) 30%, transparent));
288
288
  color: inherit;
289
289
  }
290
290
 
291
291
  :host *::-moz-selection {
292
- background-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
292
+ background-color: var(--selection-color, color-mix(in srgb, var(--focus-color, var(--primary-color)) 30%, transparent));
293
293
  color: inherit;
294
294
  }
295
295
  `;
@@ -5484,13 +5484,13 @@ const Gc = O`
5484
5484
 
5485
5485
  @media (hover: hover) {
5486
5486
  .input-wrapper:not(:has(.input-field:disabled)):not(:has(.input-field[readonly])):not(:has(.input-field.error)):hover {
5487
- outline-color: var(--primary-color);
5487
+ outline-color: var(--focus-color, var(--primary-color));
5488
5488
  }
5489
5489
  }
5490
5490
 
5491
5491
  .input-wrapper:has(.input-field:not([readonly]):not(.error):focus),
5492
5492
  .input-wrapper:has(.input-field.active:not(.error)) {
5493
- outline-color: var(--primary-color);
5493
+ outline-color: var(--focus-color, var(--primary-color));
5494
5494
  }
5495
5495
 
5496
5496
  .input-wrapper:has(.input-field:disabled) {
@@ -10943,14 +10943,6 @@ const wu = O`
10943
10943
  height: 100%;
10944
10944
  }
10945
10945
 
10946
- ::slotted(button:focus-visible),
10947
- ::slotted(a:focus-visible),
10948
- ::slotted(input:focus-visible),
10949
- ::slotted(select:focus-visible) {
10950
- outline: 2px solid var(--focus-color);
10951
- outline-offset: 2px;
10952
- }
10953
-
10954
10946
  .game-layout-game-area[inert] .game-area-container ::slotted([slot="game-area"]),
10955
10947
  .game-layout-game-area[inert] .game-layout-overlay,
10956
10948
  .game-layout-game-area[inert] origami-alert-manager {
@@ -12513,12 +12505,12 @@ const Ku = O`
12513
12505
 
12514
12506
  @media (hover: hover) {
12515
12507
  .select-wrapper:not(:has(.select-input:disabled)):not(:has(.select-input.error)):hover {
12516
- outline-color: var(--primary-color);
12508
+ outline-color: var(--focus-color, var(--primary-color));
12517
12509
  }
12518
12510
  }
12519
12511
 
12520
12512
  .select-wrapper:has(.select-input:not(.error):focus) {
12521
- outline-color: var(--primary-color);
12513
+ outline-color: var(--focus-color, var(--primary-color));
12522
12514
  }
12523
12515
 
12524
12516
  .select-wrapper:has(.select-input:disabled) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betorigami/game-ui-shared",
3
- "version": "9.1.1",
3
+ "version": "9.2.0",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "The Lit components, controllers, translations and wire types shared by every Origami game UI",