pull/16339/head
Rich Harris 2 months ago
parent c6a8147fe7
commit 34c03c3b2b

@ -389,7 +389,7 @@ export function check_element(node, context) {
case 'button': { case 'button': {
const is_hidden = const is_hidden =
get_static_value(attribute_map.get('aria-hidden')) === 'true' || get_static_value(attribute_map.get('aria-hidden')) === 'true' ||
get_static_value(attribute_map.get('inert')) === null; get_static_value(attribute_map.get('inert')) !== null;
if (!has_spread && !is_hidden && !is_labelled && !has_content(node)) { if (!has_spread && !is_hidden && !is_labelled && !has_content(node)) {
w.a11y_consider_explicit_label(node); w.a11y_consider_explicit_label(node);

Loading…
Cancel
Save