We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6a8147 commit 34c03c3Copy full SHA for 34c03c3
packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js
@@ -389,7 +389,7 @@ export function check_element(node, context) {
389
case 'button': {
390
const is_hidden =
391
get_static_value(attribute_map.get('aria-hidden')) === 'true' ||
392
- get_static_value(attribute_map.get('inert')) === null;
+ get_static_value(attribute_map.get('inert')) !== null;
393
394
if (!has_spread && !is_hidden && !is_labelled && !has_content(node)) {
395
w.a11y_consider_explicit_label(node);
0 commit comments