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

change color when hovering over code-formatted text #2007

Merged
merged 7 commits into from
Oct 16, 2024

Conversation

drammock
Copy link
Collaborator

@drammock drammock commented Oct 7, 2024

I decided to assume that #2006 was in fact a bug, so here's a fix. If it's not a bug, we can easily alter this PR to keep the test and discard the CSS change.

also includes a small tweak to the existing "breadcrumbs-everywhere" test: putting much less in the try block so that it might actually fail in cases where we would want it to fail. being more explicit about what we expect to sometimes fail, by moving some code out of the try block and into an else block

closes #2006

Copy link

github-actions bot commented Oct 7, 2024

Coverage report

This PR does not seem to contain any modification to coverable code.

@drammock drammock mentioned this pull request Oct 14, 2024
10 tasks
Comment on lines +113 to +115
def test_colors(sphinx_build_factory: Callable, page: Page, url_base: str) -> None:
"""Test that things get colored the way we expect them to.

Copy link
Collaborator

Choose a reason for hiding this comment

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

These seem to be the "light theme" colours; should we be testing for both light and dark?

My gut tells me yes WDYT @drammock @gabalafou ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think that as long as we know that mode switching works, tests like this one (i.e. "did the CSS selector do what we intended" tests) only need to test one mode.

The exception would be any a11y test that checks for color contrast --- obv. we should run that test in both modes.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We are running those a11y tests on both modes so then we should be covered

@trallard trallard added kind: bug Something isn't working tag: CSS CSS and SCSS related issues labels Oct 15, 2024
@trallard trallard merged commit c4e7c78 into pydata:main Oct 16, 2024
25 checks passed
@drammock drammock deleted the hover-code branch October 16, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working tag: CSS CSS and SCSS related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hovering on monospaced links changes underline color but not text color
2 participants