Skip to content

fix(website): apply UI5 theme to main document on theme change - #14158

Merged
nnaydenow merged 1 commit into
mainfrom
website-fix
Oct 19, 2026
Merged

nnaydenow merged 1 commit into
mainfrom
website-fix

Conversation

@nnaydenow

Copy link
Copy Markdown
Contributor

Previously, setTheme() was only called inside the playground iframes
(via ReactPlayground.tsx), so switching themes in the Settings menu
had no effect on the main document. Pages like /illustrations kept
stale --sap CSS variables regardless of the selected theme.

Add a useEffect in Root.js that registers theme assets and calls the
UI5 setTheme() on the main document whenever the theme context changes.

@nnaydenow
nnaydenow deployed to netlify-preview October 14, 2026 12:31 — with GitHub Actions Active
@nnaydenow
nnaydenow requested a review from ilhan007 October 14, 2026 12:31
@sap-ui5-webcomponents-release

Copy link
Copy Markdown

@nnaydenow
nnaydenow merged commit 756fe3b into main Oct 19, 2026
20 of 21 checks passed
@nnaydenow
nnaydenow deleted the website-fix branch October 19, 2026 07:21
@nnaydenow
nnaydenow deployed to netlify-preview October 19, 2026 07:21 — with GitHub Actions Active
@sap-ui5-webcomponents-release

Copy link
Copy Markdown

🧹 Preview deployment cleaned up: https://pr-14158--ui5-webcomponents.netlify.app

This branch was successfully deployed

1 active deployment
netlify-preview — b01746c2 Deployed Oct 19, 2026 by nnaydenow via cleanup-preview #717
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.

2 participants