Skip to content

fix(demos): fix theme switcher in local demo server#33167

Draft
alexfi1in wants to merge 1 commit intoDevExpress:26_1from
alexfi1in:fix/demos-theme-switcher
Draft

fix(demos): fix theme switcher in local demo server#33167
alexfi1in wants to merge 1 commit intoDevExpress:26_1from
alexfi1in:fix/demos-theme-switcher

Conversation

@alexfi1in
Copy link
Copy Markdown

The theme SelectBox used dataSource: "/themes" which requires a backend endpoint not available with static http-server. Replaced with an inline array of all available theme CSS files.

Also added iframe theme injection – after the demo iframe loads, the selected theme CSS is applied by replacing the hardcoded dx.light.css link inside the iframe document.

Made-with: Cursor

The theme SelectBox used `dataSource: "/themes"` which requires a
backend endpoint not available with static http-server. Replaced with
an inline array of all available theme CSS files.

Also added iframe theme injection – after the demo iframe loads, the
selected theme CSS is applied by replacing the hardcoded dx.light.css
link inside the iframe document.

Made-with: Cursor
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.

1 participant