-
Notifications
You must be signed in to change notification settings - Fork 41
Improve form errors accessibility #2454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
eb6df97
88c9434
924ccf8
d79ac34
ce3144c
e59c9c4
e7df410
5ef4847
ba68f4a
401b972
4a03c7d
b2603a4
4d613a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -416,6 +416,23 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| margin-bottom:var(--field-margin); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .<?php echo esc_html( $style_class ); ?> .frm_error_style span{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-weight: bold<?php echo esc_html( $important ); ?>;; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .<?php echo esc_html( $style_class ); ?> .frm_error_style ul{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| list-style: inside<?php echo esc_html( $important ); ?>;; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| color: <?php echo esc_html( $error_text . $important ); ?>; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .<?php echo esc_html( $style_class ); ?> .frm_error_style ul li a{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| color: <?php echo esc_html( $error_text . $important ); ?>; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .<?php echo esc_html( $style_class ); ?> .frm_error_style ul li a:hover{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| text-decoration: underline<?php echo esc_html( $important ); ?>;; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+419
to
+434
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix CSS syntax errors – double semicolons. Lines 384, 388, and 397 each have a double semicolon ( Apply this diff to fix the syntax errors: .<?php echo esc_html( $style_class ); ?> .frm_error_style span{
- font-weight: bold<?php echo esc_html( $important ); ?>;;
+ font-weight: bold<?php echo esc_html( $important ); ?>;
}
.<?php echo esc_html( $style_class ); ?> .frm_error_style ul{
- list-style: inside<?php echo esc_html( $important ); ?>;;
+ list-style: inside<?php echo esc_html( $important ); ?>;
color: <?php echo esc_html( $error_text . $important ); ?>;
}
.<?php echo esc_html( $style_class ); ?> .frm_error_style ul li a{
color: <?php echo esc_html( $error_text . $important ); ?>;
}
.<?php echo esc_html( $style_class ); ?> .frm_error_style ul li a:hover{
- text-decoration: underline<?php echo esc_html( $important ); ?>;;
+ text-decoration: underline<?php echo esc_html( $important ); ?>;
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <?php if ( $pro_is_installed ) { ?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .<?php echo esc_html( $style_class ); ?> #frm_loading .progress-striped .progress-bar{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| background-image:linear-gradient(45deg, <?php echo esc_html( $border_color ); ?> 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, <?php echo esc_html( $border_color ); ?> 50%, <?php echo esc_html( $border_color ); ?> 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0)); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A variable has been used but not defined, which may result in warnings during program execution. This can also cause bugs since the intended usage scope of the variable is not known.