Deprecate govuk-button--disabled - ability to style link buttons as disabled #2271
Closed
3 tasks done
Labels
accessibility concern
Bug, feature request or question about the accessibility of a portion of a product (not a WCAG fail)
accessibility
button
Milestone
What
Mark the
govuk-button--disabled
modifier class as deprecated, and communicate the change to users.Why
Adding the
--disabled
modifier class to the button does not prevent users from interacting with it. Because of the way that our CSS is currently written, the disabled link button still has a change on focus state.Because we're trying to remove states from an element that is still interactive and focusable, automated accessibility testing tools are likely to flag issues with it, as seen in #2127. We've also seen links with the disabled modifier flagged as failing color contrast requirements in Axe.
Further detail
At the same time, we could consider applying the hover and active states using the
:enabled
pseudo-class, rather than the current approach of 're-setting' the non-hover state for each button variant to avoid the change on hover. This would allow us to simplify the CSS, but would mean that buttons would no longer have a hover or active state in IE8.Who needs to know about this
Designers, developers
Done when
disabled
modifier class marked as deprecatedThe text was updated successfully, but these errors were encountered: