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

tiny CSS change #1769

Merged
merged 1 commit into from
Apr 15, 2024
Merged

tiny CSS change #1769

merged 1 commit into from
Apr 15, 2024

Conversation

drammock
Copy link
Collaborator

This PR changes background properties to background-color. This should make no difference to the rendered site (when only color is given, the two properties yield identical results). But for some reason, in the Firefox developer tools, specifying as background-color makes it show up in the "computed styles" list when filtering on either "background" or "color" (as you would expect), but when specified as just background the property doesn't show up for either search term.

Arguably this is a bug in the FF dev tools, but this workaround is fast and painless so why not?

@drammock drammock added the kind: maintenance Improving maintainability and reducing technical debt label Apr 14, 2024
Copy link
Collaborator

@choldgraf choldgraf left a comment

Choose a reason for hiding this comment

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

Seems reasonable to me as long as it doesn't have unintended side effects (eg maybe double check the notebook outputs to make sure they're ok still). But my understanding is that background-color is better to use anyway if you're just specifying color because it is more precise.

@drammock
Copy link
Collaborator Author

They look the same 🎉

@drammock drammock merged commit 6a95460 into pydata:main Apr 15, 2024
19 checks passed
@drammock drammock deleted the background branch April 15, 2024 12:11
gabalafou pushed a commit to gabalafou/pydata-sphinx-theme that referenced this pull request Apr 29, 2024
background → background-color
ivanov pushed a commit to ivanov/pydata-sphinx-theme that referenced this pull request Jun 5, 2024
background → background-color
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: maintenance Improving maintainability and reducing technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants