You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that disabled submit buttons don't appear disabled when Pro is inactive.
This fixes that.
Summary by CodeRabbit
Style
Enhanced visual feedback for disabled buttons with reduced opacity and "not-allowed" cursor styling applied across all disabled form submit controls and buttons.
Adds CSS disabled-state styling to css/_single_theme.css.php. Three selectors — input[type=submit][disabled], disabled form button inputs, and disabled buttons — receive opacity: 0.5 and cursor: not-allowed.
Appends three disabled-state selectors for submit and button elements, setting opacity: 0.5 and cursor: not-allowed after the base submit button style block.
Estimated code review effort
🎯 1 (Trivial) | ⏱️ ~2 minutes
Poem
A bunny hopped and clicked "Submit,"
But the button was grayed — what a wit!
Now half-faint it glows,
With a "no" cursor pose,
Disabled at last — perfectly fit! 🐇
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
✅ Passed
The title accurately summarizes the main change: adding CSS styles for disabled submit buttons in the Lite version of Formidable Forms, which matches the changeset content.
Docstring Coverage
✅ Passed
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check
✅ Passed
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
✅ Passed
Check skipped because no linked issues were found for this pull request.
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches📝 Generate docstrings
Create stacked PR
Commit on current branch
🧪 Generate unit tests (beta)
Create PR with unit tests
Commit unit tests in branch add_missing_disabled_submit_button_styles_to_lite
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
We reviewed changes in 02832ff...6dcd81f on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
The reason will be displayed to describe this comment to others. Learn more.
Variable $style_class might not be defined
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.
The reason will be displayed to describe this comment to others. Learn more.
Variable $style_class might not be defined
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.
The reason will be displayed to describe this comment to others. Learn more.
Variable $style_class might not be defined
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.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 Prompt for all review comments with 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.
Inline comments:
In `@css/_single_theme.css.php`:
- Around line 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.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
Push a commit to this branch (recommended)
Create a new PR with the fixes
ℹ️ Review info⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 13193e7a-25ba-4c77-a418-54eed55a8994
📥 Commits
Reviewing files that changed from the base of the PR and between 02832ff and 6dcd81f.
classes/views/frm-forms/form.php renders a disabled <button class="frm_button_submit" disabled="disabled"> that is not shown inside .frm_submit, so this rule set may not apply to that Lite submit button case. Add a selector that targets disabled submit buttons directly (e.g., button[type=submit][disabled] and/or .frm_button_submit[disabled]) under the style class.
‼️IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
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.
We reviewed changes in 02832ff...6dcd81f on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.
Some issues found as part of this review are outside of the diff in this pull request and aren't shown in the inline review comments due to GitHub's API limitations. You can see those issues on the DeepSource dashboard.
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I noticed that disabled submit buttons don't appear disabled when Pro is inactive.
This fixes that.
Summary by CodeRabbit