[theming]: Load multiple themes

未关闭
#12,628 3 条评论 8 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 2 天内回复

@ilhan007 已经在做这个了。

开始于 2025年11月6日。

评估

这个 Issue 还没有评估数据。

描述

bug TOPIC Core
Bug Description

Hi,

we do have multiple custom themes. In our openUI5 projects we have no problem loading them, in our new projects using the UI5 Web Components it does not work. This is currently a major blocker for us.

I found this question in https://github.com/UI5/webcomponents/issues/1737#issuecomment-641198446 but no proper answer.

If i include multiple themes it only loads the last one properly. If i try to select any other i get the error: You have requested a non-registered theme

Is it currently possible to add multiple custom themes? This is not clear in the documentation for me and all examples i found are only using one theme.

Affected Component

No response

Expected Behaviour

Include multiple themes as described in the documentation: https://ui5.github.io/webcomponents/docs/advanced/theming-part2/
Select any of the custom themes should work.

Isolated Example

https://github.com/fk-aconso/ui5-webcomponents

Steps to Reproduce
  1. Add multiple themes
  2. Select any theme: Only the last one will work.
Log Output, Stack Trace or Screenshots
@ui5_webcomponents_d…s.js?v=f2f8f665:937 You have requested a non-registered theme testgreen - falling back to sap_horizon. Registered themes are: sap_horizon
getThemeProperties	@	@ui5_webcomponents_d…s.js?v=f2f8f665:937
loadThemeBase	@	@ui5_webcomponents_d….js?v=f2f8f665:1110
applyTheme	@	@ui5_webcomponents_d….js?v=f2f8f665:1155
await in applyTheme
Priority

None

UI5 Web Components Version

2.15.1

Browser

Firefox

Operating System

No response

Additional Context

No response

Organization

aconso

Declaration
  • I’m not disclosing any internal or sensitive information.
主要语言
TypeScript
星标
1.8k
派生
290
平均合并
2 天 13 小时
30 天内合并 PR
50

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

UI5/webcomponents 的其他 Issue

查看 UI5/webcomponents 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。