Skip to content

MF: Use css for data-mf instead of js #258

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

MF: Use css for data-mf instead of js #258

wants to merge 5 commits into from

Conversation

nginx-jack
Copy link
Collaborator

@nginx-jack nginx-jack commented May 16, 2025

Moves the primary data-mf based theme switching to css instead of js.
This should slightly increase initial render time (mostly on oldframe), since the css can load before the js.
This will also make it a little easier to remove all the theme switches later since data-mf should now be a reliable way to identify old/new components.

This needs a good regression pass.

Small matching pr on documentation to fix redocly with this method of switching.
nginx/documentation#563

Copy link

Playwright visual snapshot differences were detected.

View the Playwright report
To approve the snapshot changes and update the snapshots, please comment: /approve-snapshots

Copy link

Deploy Preview will be available once build job completes!

Name Link
😎 Deploy Preview https://frontdoor-test-docs.nginx.com/previews/nginx-hugo-theme/258/

Copy link

Playwright visual snapshot differences were detected.

View the Playwright report
To approve the snapshot changes and update the snapshots, please comment: /approve-snapshots

Copy link

Playwright visual snapshot differences were detected.

View the Playwright report
To approve the snapshot changes and update the snapshots, please comment: /approve-snapshots

Copy link

Playwright visual snapshot differences were detected.

View the Playwright report
To approve the snapshot changes and update the snapshots, please comment: /approve-snapshots

@nginx-jack nginx-jack marked this pull request as ready for review May 19, 2025 12:45
@nginx-jack nginx-jack requested a review from a team as a code owner May 19, 2025 12:45
@nginx-jack nginx-jack force-pushed the data-mf-css branch 2 times, most recently from 793c845 to bb7d3b6 Compare May 23, 2025 10:22
@nginx-jack nginx-jack force-pushed the data-mf-css branch 2 times, most recently from 71fc686 to bb8abbe Compare May 29, 2025 13:20
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.

3 participants