From 31b3852b2ec24d1c02cb7c4e9414e09e2c941211 Mon Sep 17 00:00:00 2001 From: konnorrogers Date: Tue, 2 Jul 2024 18:09:54 -0400 Subject: [PATCH] revert tooltip --- src/components/tooltip/tooltip.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/tooltip/tooltip.ts b/src/components/tooltip/tooltip.ts index c19bcf7f4..f792cd944 100644 --- a/src/components/tooltip/tooltip.ts +++ b/src/components/tooltip/tooltip.ts @@ -273,12 +273,7 @@ export default class WaTooltip extends WebAwesomeElement { */ const currentLabel = newAnchor.getAttribute('aria-labelledby') || ''; if (!currentLabel.match(labelRegex)) { - - if (!currentLabel) { - newAnchor.setAttribute('aria-labelledby', this.id); - } else { - newAnchor.setAttribute('aria-labelledby', currentLabel + ' ' + this.id); - } + newAnchor.setAttribute('aria-labelledby', currentLabel + ' ' + this.id); } newAnchor.addEventListener('blur', this.handleBlur, { capture: true, signal });