Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix card focus edge cases #1265

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix card focus edge cases #1265

wants to merge 1 commit into from

Conversation

mxmason
Copy link
Member

@mxmason mxmason commented Apr 29, 2021

Closes #1208

Summary

This PR addresses an edge case in the way we style :focus-within on the resource cards: if the user focused within a card and then clicked outside the browser window, the card title would turn black, while the rest of the text remained white.

@mxmason mxmason added styling Issues dealing with our Sass/CSS. accessibility Issues dealing with accessibility. labels Apr 29, 2021
@mxmason mxmason requested a review from ericwbailey April 29, 2021 18:49
@mxmason mxmason self-assigned this Apr 29, 2021
@boring-cyborg boring-cyborg bot added javascript Issues dealing with JavaScript. markup Issues dealing with markup labels Apr 29, 2021
@mxmason mxmason force-pushed the fix/card-focus-edge-cases branch from 5daf364 to d733a4e Compare April 29, 2021 18:50
@mxmason mxmason removed javascript Issues dealing with JavaScript. markup Issues dealing with markup labels Apr 29, 2021
@SaptakS
Copy link
Member

SaptakS commented Apr 30, 2021

I am not able to reproduce #1208 anymore after @ericwbailey refactored the card resources. Can you tell me the steps to reproduce so I can verify that it's fixed?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
accessibility Issues dealing with accessibility. styling Issues dealing with our Sass/CSS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inaccessibility: Low contrast .c-card__additional in Featured Resource Card
2 participants