|
|
@ -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);
|
|
|
|