Skip to content

Commit

Permalink
add role=alert to form notices, see #640
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Nov 7, 2019
1 parent 18a18ab commit e094340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/forms/class-form-element.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected function get_notice_html(MC4WP_Form_Notice $notice)
return '';
}

$html = sprintf('<div class="mc4wp-alert mc4wp-%s"><p>%s</p></div>', esc_attr($notice->type), $notice->text);
$html = sprintf('<div class="mc4wp-alert mc4wp-%s" role="alert"><p>%s</p></div>', esc_attr($notice->type), $notice->text);
return $html;
}

Expand Down

0 comments on commit e094340

Please sign in to comment.