uikit 3.16.7-dev.fcb5a4616 → 3.16.8-dev.dc18e16fb

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 (68) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/css/uikit-core-rtl.css +33 -19
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +33 -19
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +33 -19
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +33 -19
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +1 -1
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +1 -1
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +16 -37
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +16 -37
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +1 -1
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +2 -2
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +1 -1
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +15 -36
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +1 -1
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +15 -36
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +1 -1
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +1 -1
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +1 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +45 -22
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +1 -1
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +59 -57
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/api/boot.js +10 -1
  44. package/src/js/api/observables.js +1 -1
  45. package/src/js/api/watch.js +1 -1
  46. package/src/js/core/accordion.js +4 -0
  47. package/src/js/core/dropnav.js +5 -6
  48. package/src/js/core/navbar.js +14 -4
  49. package/src/js/core/sticky.js +7 -2
  50. package/src/js/mixin/slider-autoplay.js +13 -42
  51. package/src/js/mixin/slider-nav.js +6 -1
  52. package/src/js/util/fastdom.js +2 -2
  53. package/src/js/util/scroll.js +2 -1
  54. package/src/less/components/base.less +0 -1
  55. package/src/less/components/dropbar.less +6 -0
  56. package/src/less/components/dropdown.less +5 -0
  57. package/src/less/components/navbar.less +5 -0
  58. package/src/less/components/visibility.less +25 -5
  59. package/src/scss/components/dropbar.scss +6 -0
  60. package/src/scss/components/dropdown.scss +5 -0
  61. package/src/scss/components/navbar.scss +5 -0
  62. package/src/scss/components/visibility.scss +25 -5
  63. package/src/scss/mixins-theme.scss +0 -1
  64. package/src/scss/mixins.scss +0 -1
  65. package/src/scss/variables-theme.scss +3 -0
  66. package/src/scss/variables.scss +3 -0
  67. package/tests/js/index.js +4 -3
  68. package/tests/navbar.html +2 -2
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.16.7-dev.fcb5a4616 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
1
+ /*! UIkit 3.16.8-dev.dc18e16fb | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Base
4
4
  ========================================================================== */
@@ -3561,6 +3561,9 @@ select.uk-form-width-xsmall {
3561
3561
  padding-left: 40px;
3562
3562
  }
3563
3563
  }
3564
+ .uk-dropbar :focus-visible {
3565
+ outline-color: #333 !important;
3566
+ }
3564
3567
  /* Size modifier
3565
3568
  ========================================================================== */
3566
3569
  .uk-dropbar-large {
@@ -5386,6 +5389,9 @@ ul.uk-nav-sub {
5386
5389
  .uk-navbar-dropdown > :last-child {
5387
5390
  margin-bottom: 0;
5388
5391
  }
5392
+ .uk-navbar-dropdown :focus-visible {
5393
+ outline-color: #333 !important;
5394
+ }
5389
5395
  /*
5390
5396
  * Grid
5391
5397
  * Adopts `uk-grid`
@@ -6197,6 +6203,9 @@ ul.uk-nav-sub {
6197
6203
  .uk-dropdown > :last-child {
6198
6204
  margin-bottom: 0;
6199
6205
  }
6206
+ .uk-dropdown :focus-visible {
6207
+ outline-color: #333 !important;
6208
+ }
6200
6209
  /* Size modifier
6201
6210
  ========================================================================== */
6202
6211
  .uk-dropdown-large {
@@ -9391,25 +9400,43 @@ iframe[data-uk-cover] {
9391
9400
  /* Based on the State of the Parent Element
9392
9401
  ========================================================================== */
9393
9402
  /*
9394
- * Can't use `display: none` nor `visibility: hidden` because both are not focusable.
9403
+ * Mind that `display: none`, `visibility: hidden` and `opacity: 0`
9404
+ * remove the element from the accessibility tree and that
9405
+ * `display: none` and `visibility: hidden` are not focusable.
9406
+ *
9395
9407
  * The target stays visible if any element within receives focus through keyboard.
9396
9408
  */
9397
9409
  /*
9398
- * Discard space when hidden.
9410
+ * Remove space when hidden.
9411
+ * 1. Remove from document flow.
9412
+ * 2. Hide element and shrink its dimension. Can't use zero dimensions together
9413
+ * with `overflow: hidden` it would remove it from the accessibility tree.
9414
+ * 3. Hide the single rendered pixel.
9415
+ * 4. Prevent text wrapping caused by `width: 1px` because it has side effects on vocalisation
9416
+ * by screen readers and the visual tracking indicator of other assistive technologies.
9399
9417
  */
9418
+ .uk-hidden-visually:not(:focus):not(:active):not(:focus-within),
9400
9419
  .uk-visible-toggle:not(:hover):not(:focus) .uk-hidden-hover:not(:focus-within) {
9420
+ /* 1 */
9401
9421
  position: absolute !important;
9402
- width: 0 !important;
9403
- height: 0 !important;
9422
+ /* 2 */
9423
+ width: 1px !important;
9424
+ height: 1px !important;
9404
9425
  padding: 0 !important;
9426
+ border: 0 !important;
9405
9427
  margin: 0 !important;
9406
9428
  overflow: hidden !important;
9429
+ /* 3 */
9430
+ clip-path: inset(50%) !important;
9431
+ /* 4 */
9432
+ white-space: nowrap !important;
9407
9433
  }
9408
9434
  /*
9409
9435
  * Keep space when hidden.
9436
+ * Hide element without shrinking its dimension.
9410
9437
  */
9411
9438
  .uk-visible-toggle:not(:hover):not(:focus) .uk-invisible-hover:not(:focus-within) {
9412
- opacity: 0 !important;
9439
+ clip-path: inset(50%) !important;
9413
9440
  }
9414
9441
  /* Based on Hover Capability of the Pointing Device
9415
9442
  ========================================================================== */
@@ -9796,19 +9823,6 @@ iframe[data-uk-cover] {
9796
9823
  .uk-offcanvas-bar .uk-hr {
9797
9824
  border-top-color: rgba(255, 255, 255, 0.2);
9798
9825
  }
9799
- .uk-light :focus,
9800
- .uk-section-primary:not(.uk-preserve-color) :focus,
9801
- .uk-section-secondary:not(.uk-preserve-color) :focus,
9802
- .uk-tile-primary:not(.uk-preserve-color) :focus,
9803
- .uk-tile-secondary:not(.uk-preserve-color) :focus,
9804
- .uk-card-primary.uk-card-body :focus,
9805
- .uk-card-primary > :not([class*='uk-card-media']) :focus,
9806
- .uk-card-secondary.uk-card-body :focus,
9807
- .uk-card-secondary > :not([class*='uk-card-media']) :focus,
9808
- .uk-overlay-primary :focus,
9809
- .uk-offcanvas-bar :focus {
9810
- outline-color: #fff;
9811
- }
9812
9826
  .uk-light :focus-visible,
9813
9827
  .uk-section-primary:not(.uk-preserve-color) :focus-visible,
9814
9828
  .uk-section-secondary:not(.uk-preserve-color) :focus-visible,