Skip to content

Commit 71ba775

Browse files
committed
fix/Incorrect aria-label warning for buttons with a title attribute
1 parent 87f7e97 commit 71ba775

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y

packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ export function check_element(node, context) {
382382
}
383383

384384
// element-specific checks
385-
const is_labelled = attribute_map.has('aria-label') || attribute_map.has('aria-labelledby');
385+
const is_labelled = attribute_map.has('aria-label') || attribute_map.has('aria-labelledby') || attribute_map.has('title');
386386

387387
switch (node.name) {
388388
case 'a':

0 commit comments

Comments
 (0)