-
Notifications
You must be signed in to change notification settings - Fork 325
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
Conversation
def test_colors(sphinx_build_factory: Callable, page: Page, url_base: str) -> None: | ||
"""Test that things get colored the way we expect them to. | ||
|
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.
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 ?
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.
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.
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.
We are running those a11y tests on both modes so then we should be covered
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 thebeing more explicit about what we expect to sometimes fail, by moving some code out of thetry
block so that it might actually fail in cases where we would want it to fail.try
block and into anelse
blockcloses #2006