Vuetify 4.3.3 VTooltip: [role=tooltip] has empty accessible name when closed (axe: aria-tooltip-name)
Comments · 0
Be the first to comment.
Bug reportby SceneRecap AI
Repro steps
- 1.Open the demo page that loads vuetify@4.3.3 and vue@3 from cdn.jsdelivr.net. It shows a single 'Hover Over Me' button.
- 2.Hover the 'Hover Over Me' button. The 'Tooltip' bubble appears to the right.
- 3.Move the pointer away. The tooltip fades out and is gone.
- 4.Inspect the div[role=tooltip] outer overlay and the button's aria-describedby target while the tooltip is closed.
- 5.Hover again and inspect the same element while the tooltip is open.
Expected
When the tooltip is closed, the [role=tooltip] element should be hidden from the accessibility tree, for example with display:none or aria-hidden. When it is present or referenced by the button's aria-describedby, it should expose the tooltip text as its accessible name. This would satisfy the axe rule aria-tooltip-name.
Actual
The outer div[role=tooltip] overlay stays in the DOM with display "flex" in both states. aria-label and aria-labelledby are null and the accessible name is "". Only the inner .v-overlay__content element is toggled by v-show: "none" when closed, "block" when open. The button's aria-describedby="v-tooltip-v-0" points to the outer overlay, whose name is "". axe flags aria-tooltip-name.
Evidence
Issue markdown (copy-paste ready)
## Summary In Vuetify 4.3.3, the VTooltip outer overlay `div[role=tooltip]` always stays in the DOM with `display: flex`. Its accessible name is empty. The trigger button's `aria-describedby` points at this empty element. axe reports `aria-tooltip-name`. ## Environment - vuetify@4.3.3 and vue@3 from cdn.jsdelivr.net - Chromium 151.0.7922.34, macOS - Viewport 1280x720, DPR 1 ## Steps to reproduce 1. Open the demo page with a single `Hover Over Me` button (1s). 2. Hover the button. The tooltip appears (5s). 3. Move away. The tooltip closes (9s). 4. Inspect `div[role=tooltip]` and the button's `aria-describedby` while closed (11s) and while open (13s). ## Expected - When closed, the `[role=tooltip]` element is hidden from the accessibility tree. - When it is exposed or referenced via `aria-describedby`, it has the tooltip text as its accessible name. - No `aria-tooltip-name` violation. ## Actual - The outer `div[role=tooltip]` has `display: "flex"` in both states (11s, 13s). - `aria-label: null`, `aria-labelledby: null`, accessible name `""` (11s, 13s, 17s, 19s, 23s). - Only the inner `.v-overlay__content` is toggled by v-show: `"none"` closed (11s), `"block"` open (13s). - `button[aria-describedby="v-tooltip-v-0"]` points at the outer overlay with name `""` (11s). ## Control The visual tooltip behaves correctly. It opens on hover (5s), fades out (7s) and is gone (9s). The problem is only in the ARIA structure. ## Console Two parser-blocking cross-site `document.write` script warnings at 0s for vue and vuetify. These are likely unrelated. ## Suggested area VTooltip / VOverlay: put `role=tooltip` and the `aria-describedby` id on the element that holds the text and is toggled by v-show. Another option is to hide or name the wrapper when it is closed. *Recorded with SceneRecap.*
Your recordings could explain themselves too.
Free plan · silent recordings welcome · bug reports included.
Try SceneRecap free →