-
Notifications
You must be signed in to change notification settings - Fork 273
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
Custom Themes via Theme Designer is unstable/broken #4346
Comments
Hello @SAP/ui5-webcomponents-team I am forwarding this issue to you, because it seems with the new UI5 Web Components 1.0.1 version custom themes cannot be loaded, the same way like in 1.0.0-rc.15. |
The problem is that both of these files contain a custom theme definition (metadata from Theme Designer). The one from which has invalid path in terms of theme recognition and the theme name cannot be properly extracted from the I'll keep you updated. Regards, |
Hi again @MarcusNotheis There is a proposed fix, just to double-check that this is the expectation: The custom theme will be loaded from In the meantime, to overcome this error, you can delete the malformed metadata object from .sapThemeMetaData-UI5-sap-ui-core {
background-image: url('data:text/plain;utf-8,{"Path": "UI5.sap/ui/core.custom_quartzlight.custom", "PathPattern": "/%frameworkId%/%libId%/themes/%themeId%/%fileId%.css", "Extends": ["sap_fiori_3","base"], "Engine": {"Name": "theming-engine", "Version": "1.66.0"}, "Version": { "Build": "1.96.0.20211116152438", "Source": "1.96.0"}}');
} This is the part that breaks the code. Compare to the one from .sapThemeMetaData-Base-baseLib{background-image: url('data:text/plain;utf-8,{"Path": "Base.baseLib.custom_quartzlight.css_variables", "PathPattern": "/%frameworkId%/%libId%/%themeId%/%fileId%.css", "Extends": ["sap_fiori_3","sap_base_fiori","baseTheme"], "Tags": ["Fiori_3","LightColorScheme"], "Engine": {"Name": "theming-engine", "Version": "1.66.0"}, "Version": { "Build": "11.1.34.20211116152438", "Source": "11.1.34"}}');} Regards, |
Hey @vladitasev, thanks for reaching out, that's exactly what I would have expected :) |
Bug Description
When using the Theme Designer
css_variables.css
and thecustom.css
file (we need that for some specific overrides), the UI5 Web Components will not inject any theme.Expected Behavior
My custom theme should load (like in 1.0.0-rc.15).
Additional Info
If you swap
to
the theme is loaded again, but this approach might invalidate some css variables that have been defined in
custom.css
.Steps to Reproduce
Isolated Example
https://codesandbox.io/s/mutable-framework-ytjbv?file=/public/index.html:231-334
Context
ui5-webcomponents/packages/base/src/theming/getThemeDesignerTheme.js
Lines 44 to 47 in ce0dcd2
Log Output / Stack Trace / Screenshots
Priority
Stakeholder Info (if applicable)
The text was updated successfully, but these errors were encountered: