-
Notifications
You must be signed in to change notification settings - Fork 41
Add missing disabled submit button styles to Lite #3168
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
Changes from all commits
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 | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -314,6 +314,12 @@ | |||||||||||||||||||||||
| <?php if ( $submit_width !== 'auto' ) { ?> | ||||||||||||||||||||||||
| max-width:var(--submit-width)<?php echo esc_html( $important ); ?>; | ||||||||||||||||||||||||
| <?php } ?> | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| .<?php echo esc_html( $style_class ); ?> input[type=submit][disabled], | ||||||||||||||||||||||||
| .<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button][disabled], | ||||||||||||||||||||||||
|
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_submit button[disabled] { | ||||||||||||||||||||||||
|
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 ); ?> input[type=submit][disabled], | |
| .<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button][disabled], | |
| .<?php echo esc_html( $style_class ); ?> .frm_submit button[disabled] { | |
| .<?php echo esc_html( $style_class ); ?> input[type=submit][disabled], | |
| .<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button][disabled], | |
| .<?php echo esc_html( $style_class ); ?> .frm_submit button[disabled], | |
| .<?php echo esc_html( $style_class ); ?> button[type=submit][disabled], | |
| .<?php echo esc_html( $style_class ); ?> .frm_button_submit[disabled] { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| } |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@css/_single_theme.css.php` around lines 318 - 320, The CSS selector rule in
the disabled button styling block is incomplete and misses disabled submit
buttons that are rendered outside the `.frm_submit` container. Add additional
selectors to the existing rule targeting disabled buttons directly. Include
selectors for `button[type=submit][disabled]` to catch submit button elements
with the disabled attribute, and `.frm_button_submit[disabled]` to catch
disabled buttons with the frm_button_submit class. These new selectors should be
added alongside the existing ones under the same style class wrapper so that all
disabled button variations across the form are properly styled.
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.