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
  ========================================================================== */
@@ -3299,6 +3299,9 @@ select.uk-form-width-xsmall {
3299
3299
  padding-right: 40px;
3300
3300
  }
3301
3301
  }
3302
+ .uk-dropbar :focus-visible {
3303
+ outline-color: #333 !important;
3304
+ }
3302
3305
  /* Size modifier
3303
3306
  ========================================================================== */
3304
3307
  .uk-dropbar-large {
@@ -5088,6 +5091,9 @@ ul.uk-nav-sub {
5088
5091
  .uk-navbar-dropdown > :last-child {
5089
5092
  margin-bottom: 0;
5090
5093
  }
5094
+ .uk-navbar-dropdown :focus-visible {
5095
+ outline-color: #333 !important;
5096
+ }
5091
5097
  /*
5092
5098
  * Grid
5093
5099
  * Adopts `uk-grid`
@@ -5797,6 +5803,9 @@ ul.uk-nav-sub {
5797
5803
  .uk-dropdown > :last-child {
5798
5804
  margin-bottom: 0;
5799
5805
  }
5806
+ .uk-dropdown :focus-visible {
5807
+ outline-color: #333 !important;
5808
+ }
5800
5809
  /* Size modifier
5801
5810
  ========================================================================== */
5802
5811
  .uk-dropdown-large {
@@ -8978,25 +8987,43 @@ iframe[data-uk-cover] {
8978
8987
  /* Based on the State of the Parent Element
8979
8988
  ========================================================================== */
8980
8989
  /*
8981
- * Can't use `display: none` nor `visibility: hidden` because both are not focusable.
8990
+ * Mind that `display: none`, `visibility: hidden` and `opacity: 0`
8991
+ * remove the element from the accessibility tree and that
8992
+ * `display: none` and `visibility: hidden` are not focusable.
8993
+ *
8982
8994
  * The target stays visible if any element within receives focus through keyboard.
8983
8995
  */
8984
8996
  /*
8985
- * Discard space when hidden.
8997
+ * Remove space when hidden.
8998
+ * 1. Remove from document flow.
8999
+ * 2. Hide element and shrink its dimension. Can't use zero dimensions together
9000
+ * with `overflow: hidden` it would remove it from the accessibility tree.
9001
+ * 3. Hide the single rendered pixel.
9002
+ * 4. Prevent text wrapping caused by `width: 1px` because it has side effects on vocalisation
9003
+ * by screen readers and the visual tracking indicator of other assistive technologies.
8986
9004
  */
9005
+ .uk-hidden-visually:not(:focus):not(:active):not(:focus-within),
8987
9006
  .uk-visible-toggle:not(:hover):not(:focus) .uk-hidden-hover:not(:focus-within) {
9007
+ /* 1 */
8988
9008
  position: absolute !important;
8989
- width: 0 !important;
8990
- height: 0 !important;
9009
+ /* 2 */
9010
+ width: 1px !important;
9011
+ height: 1px !important;
8991
9012
  padding: 0 !important;
9013
+ border: 0 !important;
8992
9014
  margin: 0 !important;
8993
9015
  overflow: hidden !important;
9016
+ /* 3 */
9017
+ clip-path: inset(50%) !important;
9018
+ /* 4 */
9019
+ white-space: nowrap !important;
8994
9020
  }
8995
9021
  /*
8996
9022
  * Keep space when hidden.
9023
+ * Hide element without shrinking its dimension.
8997
9024
  */
8998
9025
  .uk-visible-toggle:not(:hover):not(:focus) .uk-invisible-hover:not(:focus-within) {
8999
- opacity: 0 !important;
9026
+ clip-path: inset(50%) !important;
9000
9027
  }
9001
9028
  /* Based on Hover Capability of the Pointing Device
9002
9029
  ========================================================================== */
@@ -9356,19 +9383,6 @@ iframe[data-uk-cover] {
9356
9383
  .uk-offcanvas-bar .uk-hr {
9357
9384
  border-top-color: rgba(255, 255, 255, 0.2);
9358
9385
  }
9359
- .uk-light :focus,
9360
- .uk-section-primary:not(.uk-preserve-color) :focus,
9361
- .uk-section-secondary:not(.uk-preserve-color) :focus,
9362
- .uk-tile-primary:not(.uk-preserve-color) :focus,
9363
- .uk-tile-secondary:not(.uk-preserve-color) :focus,
9364
- .uk-card-primary.uk-card-body :focus,
9365
- .uk-card-primary > :not([class*='uk-card-media']) :focus,
9366
- .uk-card-secondary.uk-card-body :focus,
9367
- .uk-card-secondary > :not([class*='uk-card-media']) :focus,
9368
- .uk-overlay-primary :focus,
9369
- .uk-offcanvas-bar :focus {
9370
- outline-color: #fff;
9371
- }
9372
9386
  .uk-light :focus-visible,
9373
9387
  .uk-section-primary:not(.uk-preserve-color) :focus-visible,
9374
9388
  .uk-section-secondary:not(.uk-preserve-color) :focus-visible,