-
Notifications
You must be signed in to change notification settings - Fork 333
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 deprecated govuk-button--disabled
class
#3557
Conversation
The changelog might be a bit awkward as there's already a section regarding changes to disabled buttons. I've tried to merge these changes into it rather than having a separate, similarly titled section. |
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.
Looks good to me 💪🏻
I'm unsure if we should also remove disabled="disabled"
. Nothing struck me as a reason it was there in the commit history that I was able to uncover. My guess is this is a failsafe for incorrect implementations? I'm leaning towards not deleting it but it also feels like that's just kicking the can down the road. Maybe we should just get rid of it 👀
Unless I'm having a late afternoon brainfart (not unheard of!) I'm not aware of any implementation that Even if teams have added their own styles for either selector, the value-d option has no greater specificity than the value-less one, and a team's own styles will trump both of them on the cascade alone anyway. I feel pretty safe taking it out, I'm pretty confident it can't break anything. |
I agree with your conclusion – anything that's covered by I'm not 100% sure about merging the two entries under a single changelog entry – I'm mainly wondering if the second one might get missed. I do think we should refer back to it's deprecation, like we did for the previous major release. If users have been acting on our deprecations they shouldn't have to do anything – adding this would help them make that connection. |
This selector is seemingly redundant as all elements that would match it would also match `.govuk-button[disabled]` at the same specificity.
f67c3c0
to
704a617
Compare
.govuk-button--disabled
classgovuk-button--disabled
class
Removes the
.govuk-button--disabled
class that was deprecated in 4.6.0. Closes #2681.Changes
.govuk-button--disabled
selector and the deprecation comment from the stylesheet..govuk-button--disabled
class to disabled buttons.disabled
parameter has no affect ona
elements..govuk-button--disabled
class.Thoughts
We also have a
.govuk-button[disabled="disabled"]
selector defined in there. I'm not sure why this exists alongside.govuk-button[disabled]
, as they have the same specificity anddisabled
is a boolean attribute (the presence of a value is meaningless)..govuk-button[disabled]
alone would seem to suffice. Should we also remove.govuk-button[disabled="disabled"]
? I don't think doing so would require a deprecation or breaking change.