Skip to content

Conversation

@ilhan007
Copy link
Contributor

@ilhan007 ilhan007 commented Dec 10, 2025

When theme parameters loader is registered (via registerThemePropertiesLoader method) after boot and external (custom) theme is in use, the applyTheme isn't being called again, which leads to missing CSS variables and visual issues.

There is already a handler (onThemeRegistered) that executes upon theme parameters registration, however the handler will call applyTheme only if the theme that the loader is registered for matches the current theme.
This change adds one more condition - checking the "base theme" of the currently set theme.
The "base theme" is present in the case of a external (custom) theme - e.g. the one that the custom theme is derived from.

Related to: #12779

@ui5-webcomponents-bot
Copy link
Collaborator

ui5-webcomponents-bot commented Dec 10, 2025

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 10, 2025 16:25 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 11, 2025 09:23 Inactive
@ilhan007 ilhan007 changed the title refactor: call appyTheme after boot upon delayed theme register and custom theme in use refactor: call appyTheme on delayed theme registration after framework boot Dec 11, 2025
@ilhan007 ilhan007 requested review from nnaydenow, pskelin and vladitasev and removed request for vladitasev December 16, 2025 14:56
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 16, 2025 15:01 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 17, 2025 08:13 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 17, 2025 14:56 Inactive
@ilhan007 ilhan007 changed the title refactor: call appyTheme on delayed theme registration after framework boot fix(framework): call appyTheme on delayed theme registration after framework boot Dec 17, 2025
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