Skip to content
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

fix(button): changed aria-live to be separate form aria-disabled hover #1645

Merged
merged 2 commits into from
Jan 24, 2022

Conversation

agliga
Copy link
Contributor

@agliga agliga commented Jan 21, 2022

Description

Since partially disabled relies on aria-disabled to disable hover, this code was picking up hover together with aria-live. Changed it so they're separate checks.

References

#1637

@agliga agliga self-assigned this Jan 21, 2022
@agliga agliga linked an issue Jan 21, 2022 that may be closed by this pull request
Copy link
Contributor

@ArtBlue ArtBlue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@ianmcburnie
Copy link
Contributor

ianmcburnie commented Jan 21, 2022

Also running into some unsynced files when running build:

Screen Shot 2022-01-21 at 3 51 47 PM

@agliga
Copy link
Contributor Author

agliga commented Jan 21, 2022

Also running into some unsynced files when running build:

Screen Shot 2022-01-21 at 3 51 47 PM

Yes. This was due to the hover pr. It's fixed on 13.4

@@ -79,7 +79,7 @@ a.fake-btn--primary {
}

/* show hover states only for non-disabled or non-loading state button */
button.btn--primary:not([disabled]):not([aria-live="polite"][aria-disabled="true"]),
button.btn--primary:not([disabled]):not([aria-disabled="true"]),
a.fake-btn--primary[href] {
&:focus,
&:hover,
Copy link
Contributor

@austingardner austingardner Jan 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we drop the active here (line 86)? I think maybe I should've with my last PR. Maybe could do in a separate PR if needed, but probably shouldn't be here. Other than that LGTM

@agliga agliga merged commit 0bb84fd into 13.4.0 Jan 24, 2022
@ianmcburnie ianmcburnie deleted the 1637-hover-color branch February 3, 2022 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

button: partially disabled still shows hover color changes
4 participants