Document submit button behavior: avoid disabling submit for form validation #8118
asuwebdesign
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
PatternFly documentation currently shows inconsistent submit button behavior during form validation. This proposal recommends adding guidance that submit buttons should not be disabled solely for validation purposes, and documenting accessible, predictable alternatives.
This is a documentation recommendation, not a breaking change or hard requirement.
Current State
Across PatternFly examples and downstream implementations:
Without guidance, teams frequently default to disabling the primary action, resulting in inconsistent behavior and avoidable accessibility issues.
Proposed Documentation Guidance
1. Recommendation
Do not disable submit buttons solely to enforce validation.
Instead:
2. Accessibility Rationale
According to W3C WAI guidance:
Allowing submission ensures validation requirements are discoverable and announced.
3. Usability Rationale
Industry research and guidance (Nielsen Norman Group, GOV.UK) show that:
4. Recommended Pattern
aria-invalidandaria-describedbyare applied5. Explicit Exceptions
Disabling a submit button may still be appropriate when:
These cases should be documented as exceptions, not defaults.
Why This Matters
Anticipated Concerns & Clarifications
Acceptance Criteria
Closing
Disabling submit buttons for validation is a common but avoidable source of friction. Clear guidance here would help product teams using PatternFly deliver more accessible, predictable, and human-centered forms.
Beta Was this translation helpful? Give feedback.
All reactions