-
Notifications
You must be signed in to change notification settings - Fork 107
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
Remove support for disabled links #1075
base: main
Are you sure you want to change the base?
Conversation
Disabled style is applied to any nhs-button with the disabled attribute
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.
Makes sense to me. 👍
A breaking change so not sure when it should get merged. @anandamaryon1?
Note to self: update this (now incorrect) guidance on the button page:
|
@anandamaryon1 I think this guidance would still stand (unless you have any more recent research?) but with the caveat that only disabled actual |
Description
Removes support for disabled links, which are not really a thing (or at least, shouldn’t be).
button
Nunjucks macro for addingaria-disabled="true"
ifelement
isa
anddisabled
is truenhsuk-button--disabled
modifier; buttons are styled as disabled if they have thedisabled
attribute applieddisabled
boolean attribute (as opposed todisabled="disabled"
Checklist