diff --git a/src/readme.txt b/src/readme.txt index 91e47180e..e652760e3 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -87,6 +87,8 @@ You can also contribute to the plugin by translating it. Simply visit [translate * Enhanced: Changed standard export type to one column for choices for better readability in mails * Enhanced: Changed order of reCaptcha to the end of protectors list, because it's 3rd pary * Enhanced: Added hint if reCaptcha is not configured properly +* Enhanced: Moved description before HTML inputs +* Enhanced: Added role="alert" to errors on forms for better accessibility * Fixed: Added wrapper for buggy filter_input PHP function * Fixed: Plugin-Lib throws notice for datetime fields * Fixed: Compact PHP function in PHP 7.3 throws error diff --git a/src/templates/element-checkbox.php b/src/templates/element-checkbox.php index 1a6d599a5..c7b7cec9a 100644 --- a/src/templates/element-checkbox.php +++ b/src/templates/element-checkbox.php @@ -29,7 +29,7 @@ - template()->attrs( $errors_attrs ); ?>> + template()->attrs( $errors_attrs ); ?> role="alert"> $error_message ) : ?>
  • template()->esc_kses_basic( $error_message ); ?>
  • diff --git a/src/templates/element-dropdown.php b/src/templates/element-dropdown.php index 040661a5b..4b1e55a81 100644 --- a/src/templates/element-dropdown.php +++ b/src/templates/element-dropdown.php @@ -41,7 +41,7 @@ - template()->attrs( $errors_attrs ); ?>> + template()->attrs( $errors_attrs ); ?> role="alert"> $error_message ) : ?>
  • template()->esc_kses_basic( $error_message ); ?>
  • diff --git a/src/templates/element-media.php b/src/templates/element-media.php index d82616cd3..76e126f3b 100644 --- a/src/templates/element-media.php +++ b/src/templates/element-media.php @@ -40,7 +40,7 @@ ?> - template()->attrs( $errors_attrs ); ?>> + template()->attrs( $errors_attrs ); ?> role="alert"> $error_message ) : ?>
  • template()->esc_kses_basic( $error_message ); ?>
  • diff --git a/src/templates/element-multiplechoice.php b/src/templates/element-multiplechoice.php index a85fadad1..e6424ef1d 100644 --- a/src/templates/element-multiplechoice.php +++ b/src/templates/element-multiplechoice.php @@ -44,7 +44,7 @@ - template()->attrs( $errors_attrs ); ?>> + template()->attrs( $errors_attrs ); ?> role="alert"> $error_message ) : ?>
  • template()->esc_kses_basic( $error_message ); ?>
  • diff --git a/src/templates/element-onechoice.php b/src/templates/element-onechoice.php index 6dd2450e1..ccc93f67d 100644 --- a/src/templates/element-onechoice.php +++ b/src/templates/element-onechoice.php @@ -44,7 +44,7 @@ - template()->attrs( $errors_attrs ); ?>> + template()->attrs( $errors_attrs ); ?> role="alert"> $error_message ) : ?>
  • template()->esc_kses_basic( $error_message ); ?>
  • diff --git a/src/templates/element-textarea.php b/src/templates/element-textarea.php index 86558963d..d3d71e76c 100644 --- a/src/templates/element-textarea.php +++ b/src/templates/element-textarea.php @@ -29,7 +29,7 @@ template()->attrs( $input_attrs ); ?>>template()->esc_textarea( $value ); ?> - template()->attrs( $errors_attrs ); ?>> + template()->attrs( $errors_attrs ); ?> role="alert"> $error_message ) : ?>
  • template()->esc_kses_basic( $error_message ); ?>
  • diff --git a/src/templates/element-textfield.php b/src/templates/element-textfield.php index cad9e5f7d..cee980780 100644 --- a/src/templates/element-textfield.php +++ b/src/templates/element-textfield.php @@ -29,7 +29,7 @@ template()->attrs( $input_attrs ); ?> value="template()->esc_attr( $value ); ?>"> - template()->attrs( $errors_attrs ); ?>> + template()->attrs( $errors_attrs ); ?> role="alert"> $error_message ) : ?>
  • template()->esc_kses_basic( $error_message ); ?>