@lime-bundles/widget 2.5.0 → 2.5.1

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/dist/index.cjs CHANGED
@@ -2401,10 +2401,10 @@ var BUNDLE_BASE_CSS = `/* Lime Bundles \u2014 shared base styles for all bundle
2401
2401
  click-to-focus doesn't leave a keyboard-style ring. The modal overlay
2402
2402
  gets its own selector because the Liquid path reparents it to body,
2403
2403
  outside the widget root. */
2404
- .using-mouse .lb-bundle-widget :focus,
2405
- .using-mouse .lb-bundle-widget :focus-visible,
2406
- .using-mouse .lb-mix-match__modal-overlay :focus,
2407
- .using-mouse .lb-mix-match__modal-overlay :focus-visible {
2404
+ .using-mouse .lb-bundle-widget :focus:not([aria-checked="true"]),
2405
+ .using-mouse .lb-bundle-widget :focus-visible:not([aria-checked="true"]),
2406
+ .using-mouse .lb-mix-match__modal-overlay :focus:not([aria-checked="true"]),
2407
+ .using-mouse .lb-mix-match__modal-overlay :focus-visible:not([aria-checked="true"]) {
2408
2408
  outline: none;
2409
2409
  outline-offset: 0;
2410
2410
  box-shadow: none;
@@ -3283,10 +3283,21 @@ var BUNDLE_VOLUME_CSS = `/* Lime Bundles \u2014 Volume / Quantity Breaks styles
3283
3283
  }
3284
3284
 
3285
3285
  .lb-volume__tier:hover {
3286
- border-color: color-mix(in srgb, var(--lb-tier-border-color) 50%, black);
3286
+ border-color: var(--lb-tier-selected-border-color);
3287
+ }
3288
+
3289
+ /* Suppress the UA default focus outline so a freshly-clicked selected
3290
+ tier doesn't briefly show the 1px focus ring on top of (or in place of)
3291
+ the custom selected-state outline below. Keyboard focus is still
3292
+ indicated by the :focus-visible rule. */
3293
+ .lb-volume__tier:focus {
3294
+ outline: none;
3287
3295
  }
3288
3296
 
3289
- .lb-volume__tier:focus-visible {
3297
+ /* Keyboard focus indicator \u2014 explicitly excludes the selected tier so
3298
+ the selected-state outline rule below has full ownership of the
3299
+ outline property when both states apply at once. */
3300
+ .lb-volume__tier:focus-visible:not([aria-checked="true"]) {
3290
3301
  outline: 2px solid var(--lb-primary-color);
3291
3302
  outline-offset: 2px;
3292
3303
  }