From 4befbfafc549a4fe7dec436d27b47b0dce1c1f93 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Wed, 13 Apr 2022 09:02:23 -0400 Subject: [PATCH] improve tooltip a11y; #219 --- docs/resources/changelog.md | 1 + src/components/tooltip/tooltip.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/resources/changelog.md b/docs/resources/changelog.md index 37ebe4c4..67b4b5fe 100644 --- a/docs/resources/changelog.md +++ b/docs/resources/changelog.md @@ -19,6 +19,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis - Fixed a bug that prevented `` from being closed when opened initially [#720](https://github.com/shoelace-style/shoelace/issues/720) - Fixed a bug that caused the test runner to fail when using a locale other than en-US [#726](https://github.com/shoelace-style/shoelace/issues/726) - Improved form submit logic so most user-added event listeners will run after form data is attached and validation occurs [#718](https://github.com/shoelace-style/shoelace/issues/718) +- Improved accessibility of `` so screen readers announce the content on hover/focus [#219](https://github.com/shoelace-style/shoelace/issues/219) - Updated `` and `` to cycle through tabs and menu items instead of stopping at the first/last when using the keyboard - Removed path aliasing (again) because it doesn't work with Web Test Runner's esbuild plugin diff --git a/src/components/tooltip/tooltip.ts b/src/components/tooltip/tooltip.ts index fad3b8a6..4c0ab45c 100644 --- a/src/components/tooltip/tooltip.ts +++ b/src/components/tooltip/tooltip.ts @@ -331,7 +331,7 @@ export default class SlTooltip extends LitElement { aria-hidden=${this.open ? 'false' : 'true'} >
-
+
${this.content}