@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.
- package/components/overlays/src/ArrowMixin.js +3 -1
- package/components/overlays/test/ArrowMixin.test.js +14 -0
- package/dist-types/components/overlays/src/ArrowMixin.d.ts.map +1 -1
- package/dist-types/tsconfig.tsbuildinfo +1 -1
- package/docs/components/checkbox-group/overview.md +2 -2
- package/docs/components/collapsible/overview.md +1 -1
- package/docs/components/combobox/overview.md +1 -1
- package/docs/components/combobox/use-cases.md +1 -1
- package/docs/components/dialog/overview.md +1 -1
- package/docs/components/fieldset/overview.md +5 -5
- package/docs/components/form/overview.md +3 -3
- package/docs/components/icon/use-cases.md +1 -1
- package/docs/components/input/overview.md +1 -1
- package/docs/components/input-amount/overview.md +3 -3
- package/docs/components/input-date/overview.md +3 -3
- package/docs/components/input-datepicker/overview.md +5 -5
- package/docs/components/input-email/overview.md +2 -2
- package/docs/components/input-file/overview.md +1 -1
- package/docs/components/input-iban/overview.md +2 -2
- package/docs/components/input-range/overview.md +2 -2
- package/docs/components/input-stepper/overview.md +1 -1
- package/docs/components/input-tel/overview.md +1 -1
- package/docs/components/input-tel/use-cases.md +6 -6
- package/docs/components/input-tel-dropdown/overview.md +1 -1
- package/docs/components/radio-group/overview.md +3 -3
- package/docs/components/select-rich/use-cases.md +1 -1
- package/docs/components/tabs/examples.md +1 -1
- package/docs/fundamentals/index.md +4 -4
- package/docs/fundamentals/node-tools/providence-analytics/LocalConfiguration.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/QueryResult.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/analyzer.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/dashboard.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/overview.md +3 -3
- package/docs/fundamentals/node-tools/publish-docs/overview.md +3 -3
- package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +2 -2
- package/docs/fundamentals/rationales/accessibility.md +1 -1
- package/docs/fundamentals/systems/core/SlotMixin.md +1 -1
- package/docs/fundamentals/systems/core/overview.md +1 -1
- package/docs/fundamentals/systems/form/formatting-and-parsing.md +4 -4
- package/docs/fundamentals/systems/form/model-value.md +1 -1
- package/docs/fundamentals/systems/form/overview.md +28 -28
- package/docs/fundamentals/systems/form/validate.md +1 -1
- package/docs/fundamentals/systems/localize/overview.md +4 -4
- package/docs/fundamentals/systems/overlays/configuration.md +2 -2
- package/docs/fundamentals/systems/overlays/overview.md +5 -5
- package/docs/fundamentals/systems/overlays/use-cases.md +2 -2
- package/docs/fundamentals/tools/helpers/overview.md +1 -1
- package/docs/fundamentals/tools/singleton-manager/overview.md +4 -4
- package/docs/guides/how-to/create-a-custom-field.md +5 -5
- package/docs/guides/how-to/create-a-form.md +4 -4
- package/docs/guides/how-to/extend-a-native-input.md +2 -2
- package/docs/guides/index.md +8 -8
- package/docs/guides/principles/index.md +5 -5
- package/docs/guides/principles/styling.md +1 -1
- package/package.json +1 -1
|
@@ -110,7 +110,9 @@ export const ArrowMixinImplementation = superclass =>
|
|
|
110
110
|
|
|
111
111
|
/** @protected */
|
|
112
112
|
_arrowNodeTemplate() {
|
|
113
|
-
return html`
|
|
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,
|
|
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"}
|