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

Support responsive dark mode #9

Merged
merged 2 commits into from
Jan 16, 2024
Merged

Support responsive dark mode #9

merged 2 commits into from
Jan 16, 2024

Conversation

remcohaszing
Copy link
Owner

This is only supported for the img-png and img-svg strategies. Dark mode is supported using a responsive <picture> element.

Closes #6

This is only supported for the `img-png` and `img-svg` strategies. Dark
mode is supported using a responsive `<picture>` element.

Closes #6
Copy link

codecov bot commented Jan 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0792706) 100.00% compared to head (05eb014) 100.00%.

❗ Current head 05eb014 differs from pull request most recent head 0303003. Consider uploading reports for the commit 0303003 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##              main        #9    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files            1         1            
  Lines          263       365   +102     
  Branches        41        51    +10     
==========================================
+ Hits           263       365   +102     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@remcohaszing
Copy link
Owner Author

@stereobooster would you be willing to review this? I’m mainly wondering if the test fixtures are as you expected.

Copy link

@stereobooster stereobooster left a comment

Choose a reason for hiding this comment

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

I think this is exactly what was discussed in the ticket 👍

The meta tag `color-scheme` is now used to determine whether the light
or dark diagram should be used by default when using a responsive
picture element.
@remcohaszing remcohaszing merged commit b723871 into main Jan 16, 2024
8 checks passed
@remcohaszing remcohaszing deleted the responsive-dark-mode branch January 16, 2024 16:56
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.

Idea: dark mode support
2 participants