uikit 3.16.17-dev.8404b30b4 → 3.16.17-dev.d72bbb079

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 (44) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/css/uikit-core-rtl.css +1 -1
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +1 -1
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +1 -1
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +1 -1
  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 +1 -1
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +17 -2
  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 +17 -2
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/core/icon.js +19 -0
  44. package/tests/search.html +49 -0
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "uikit",
3
3
  "title": "UIkit",
4
4
  "description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
5
- "version": "3.16.17-dev.8404b30b4",
5
+ "version": "3.16.17-dev.d72bbb079",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -117,6 +117,10 @@ export const NavParentIcon = {
117
117
  export const Search = {
118
118
  extends: IconComponent,
119
119
 
120
+ mixins: [I18n],
121
+
122
+ i18n: { toggle: 'Open Search', submit: 'Submit Search' },
123
+
120
124
  beforeConnect() {
121
125
  this.icon =
122
126
  hasClass(this.$el, 'uk-search-icon') && parents(this.$el, '.uk-search-large').length
@@ -124,6 +128,21 @@ export const Search = {
124
128
  : parents(this.$el, '.uk-search-navbar').length
125
129
  ? 'search-navbar'
126
130
  : this.$props.icon;
131
+
132
+ if (hasAttr(this.$el, 'aria-label')) {
133
+ return;
134
+ }
135
+
136
+ if (hasClass(this.$el, 'uk-search-toggle') || hasClass(this.$el, 'uk-navbar-toggle')) {
137
+ const label = this.t('toggle');
138
+ attr(this.$el, 'aria-label', label);
139
+ } else {
140
+ const button = closest(this.$el, 'a,button');
141
+ if (button) {
142
+ const label = this.t('submit');
143
+ attr(button, 'aria-label', label);
144
+ }
145
+ }
127
146
  },
128
147
  };
129
148
 
package/tests/search.html CHANGED
@@ -369,6 +369,55 @@
369
369
  </div>
370
370
  </div>
371
371
 
372
+ <h2>Javascript Options</h2>
373
+
374
+ <div class="uk-overflow-auto">
375
+ <table class="uk-table uk-table-striped">
376
+ <thead>
377
+ <tr>
378
+ <th>Option</th>
379
+ <th>Value</th>
380
+ <th>Default</th>
381
+ <th>Description</th>
382
+ </tr>
383
+ </thead>
384
+ <tbody>
385
+ <tr>
386
+ <td><code>i18n</code></td>
387
+ <td>Object</td>
388
+ <td>null</td>
389
+ <td>Override default translation texts.</td>
390
+ </tr>
391
+ </tbody>
392
+ </table>
393
+ </div>
394
+
395
+ <h2>i18n</h2>
396
+
397
+ <div class="uk-overflow-auto">
398
+ <table class="uk-table uk-table-striped">
399
+ <thead>
400
+ <tr>
401
+ <th>Key</th>
402
+ <th>Default</th>
403
+ <th>Description</th>
404
+ </tr>
405
+ </thead>
406
+ <tbody>
407
+ <tr>
408
+ <td><code>toggle</code></td>
409
+ <td>Open Search</td>
410
+ <td><code>aria-label</code> for toggle button.</td>
411
+ </tr>
412
+ <tr>
413
+ <td><code>submit</code></td>
414
+ <td>Submit Search</td>
415
+ <td><code>aria-label</code> for submit button.</td>
416
+ </tr>
417
+ </tbody>
418
+ </table>
419
+ </div>
420
+
372
421
  </div>
373
422
 
374
423
  </body>