@lion/ui 0.3.4 → 0.3.5

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 (55) hide show
  1. package/components/overlays/src/ArrowMixin.js +3 -1
  2. package/components/overlays/test/ArrowMixin.test.js +14 -0
  3. package/dist-types/components/overlays/src/ArrowMixin.d.ts.map +1 -1
  4. package/dist-types/tsconfig.tsbuildinfo +1 -1
  5. package/docs/components/checkbox-group/overview.md +2 -2
  6. package/docs/components/collapsible/overview.md +1 -1
  7. package/docs/components/combobox/overview.md +1 -1
  8. package/docs/components/combobox/use-cases.md +1 -1
  9. package/docs/components/dialog/overview.md +1 -1
  10. package/docs/components/fieldset/overview.md +5 -5
  11. package/docs/components/form/overview.md +3 -3
  12. package/docs/components/icon/use-cases.md +1 -1
  13. package/docs/components/input/overview.md +1 -1
  14. package/docs/components/input-amount/overview.md +3 -3
  15. package/docs/components/input-date/overview.md +3 -3
  16. package/docs/components/input-datepicker/overview.md +5 -5
  17. package/docs/components/input-email/overview.md +2 -2
  18. package/docs/components/input-file/overview.md +1 -1
  19. package/docs/components/input-iban/overview.md +2 -2
  20. package/docs/components/input-range/overview.md +2 -2
  21. package/docs/components/input-stepper/overview.md +1 -1
  22. package/docs/components/input-tel/overview.md +1 -1
  23. package/docs/components/input-tel/use-cases.md +6 -6
  24. package/docs/components/input-tel-dropdown/overview.md +1 -1
  25. package/docs/components/radio-group/overview.md +3 -3
  26. package/docs/components/select-rich/use-cases.md +1 -1
  27. package/docs/components/tabs/examples.md +1 -1
  28. package/docs/fundamentals/index.md +4 -4
  29. package/docs/fundamentals/node-tools/providence-analytics/LocalConfiguration.md +1 -1
  30. package/docs/fundamentals/node-tools/providence-analytics/QueryResult.md +1 -1
  31. package/docs/fundamentals/node-tools/providence-analytics/analyzer.md +1 -1
  32. package/docs/fundamentals/node-tools/providence-analytics/dashboard.md +1 -1
  33. package/docs/fundamentals/node-tools/providence-analytics/overview.md +3 -3
  34. package/docs/fundamentals/node-tools/publish-docs/overview.md +3 -3
  35. package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +2 -2
  36. package/docs/fundamentals/rationales/accessibility.md +1 -1
  37. package/docs/fundamentals/systems/core/SlotMixin.md +1 -1
  38. package/docs/fundamentals/systems/core/overview.md +1 -1
  39. package/docs/fundamentals/systems/form/formatting-and-parsing.md +4 -4
  40. package/docs/fundamentals/systems/form/model-value.md +1 -1
  41. package/docs/fundamentals/systems/form/overview.md +28 -28
  42. package/docs/fundamentals/systems/form/validate.md +1 -1
  43. package/docs/fundamentals/systems/localize/overview.md +4 -4
  44. package/docs/fundamentals/systems/overlays/configuration.md +2 -2
  45. package/docs/fundamentals/systems/overlays/overview.md +5 -5
  46. package/docs/fundamentals/systems/overlays/use-cases.md +2 -2
  47. package/docs/fundamentals/tools/helpers/overview.md +1 -1
  48. package/docs/fundamentals/tools/singleton-manager/overview.md +4 -4
  49. package/docs/guides/how-to/create-a-custom-field.md +5 -5
  50. package/docs/guides/how-to/create-a-form.md +4 -4
  51. package/docs/guides/how-to/extend-a-native-input.md +2 -2
  52. package/docs/guides/index.md +8 -8
  53. package/docs/guides/principles/index.md +5 -5
  54. package/docs/guides/principles/styling.md +1 -1
  55. package/package.json +1 -1
@@ -110,7 +110,9 @@ export const ArrowMixinImplementation = superclass =>
110
110
 
111
111
  /** @protected */
112
112
  _arrowNodeTemplate() {
113
- return html` <div class="arrow" data-popper-arrow>${this._arrowTemplate()}</div> `;
113
+ return html`
114
+ <div class="arrow" aria-hidden="true" data-popper-arrow>${this._arrowTemplate()}</div>
115
+ `;
114
116
  }
115
117
 
116
118
  /** @protected */
@@ -62,6 +62,20 @@ describe('ArrowMixin', () => {
62
62
  expect(window.getComputedStyle(arrowNode).getPropertyValue('display')).to.equal('block');
63
63
  });
64
64
 
65
+ it('hides for screen readers', async () => {
66
+ const el = /** @type {ArrowTest} */ (
67
+ await fixture(html`
68
+ <arrow-test>
69
+ <div slot="content">This is a tooltip</div>
70
+ <button slot="invoker">Tooltip button</button>
71
+ </arrow-test>
72
+ `)
73
+ );
74
+
75
+ const arrowNode = /** @type {Element} */ (el._arrowNode);
76
+ expect(arrowNode.getAttribute('aria-hidden')).to.equal('true');
77
+ });
78
+
65
79
  it('hides the arrow when has-arrow is false', async () => {
66
80
  const el = /** @type {ArrowTest} */ (
67
81
  await fixture(html`
@@ -1 +1 @@
1
- {"version":3,"file":"ArrowMixin.d.ts","sourceRoot":"","sources":["../../../../components/overlays/src/ArrowMixin.js"],"names":[],"mappings":"AAIA;;;;;;GAMG;AAEH;;;GAGG;AACH,uCAHU,UAAU,CAwMhB;yBA/MS,OAAO,6BAA6B,EAAE,UAAU;AAiN7D,0FAAgE;4BAlNnD,OAAO,2BAA2B,EAAE,aAAa;4BAEjD,OAAO,8BAA8B,EAAE,OAAO;wBAC9C,OAAO,6BAA6B,EAAE,SAAS;6BAC/C,OAAO,KAAK,EAAE,cAAc"}
1
+ {"version":3,"file":"ArrowMixin.d.ts","sourceRoot":"","sources":["../../../../components/overlays/src/ArrowMixin.js"],"names":[],"mappings":"AAIA;;;;;;GAMG;AAEH;;;GAGG;AACH,uCAHU,UAAU,CA0MhB;yBAjNS,OAAO,6BAA6B,EAAE,UAAU;AAmN7D,0FAAgE;4BApNnD,OAAO,2BAA2B,EAAE,aAAa;4BAEjD,OAAO,8BAA8B,EAAE,OAAO;wBAC9C,OAAO,6BAA6B,EAAE,SAAS;6BAC/C,OAAO,KAAK,EAAE,cAAc"}