Include fonts in themes (standalone build for `theme-library`)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript
- 領域
- build-system, tooling
調査の方向性
Reproduce the reported theme-library build with SAPUI5 1.104.2, the listed dependent libraries, and the custom_horizon theme. Inspect the dist output alongside the generated CSS and requested font URLs; done means the standalone theme build contains the required font files and the deployed theme no longer returns 404 errors.
索引モデルが issue の本文から書いたものです。
説明
Hi!
First of all, I am not sure if this is a bug or a feature request.
Is your feature request related to a problem? Please describe.
I found that when creating a custom theme (using type theme-library) it builds all the CSS files but the theme is not really usable as the font files are not contained in the build result.
CheckBox tick marks and Select arrows are not properly displayed in the theme:
The reason is that the fonts (especially the SAP-icons) are not loaded.
Further analysis
I made a MWE. It just contains a theme-library project with framework SAPUI5 1.104.2 and 5 dependent libraries (sap.m, sap.ui.core, sap.ui.layout, sap.ui.unified, themelib_sap_horizon).
When running the app with parameter sap-ui-theme=custom_horizon@/theme:
- it properly loads CSS files from
/theme/UI5/sap/ui/core/themes/custom_horizon/library.css?version=1.104.0&sap-ui-dist-version=1.104.2and similar URLs - it tries to load the fonts from
/theme/UI5/sap/ui/core/themes/sap_horizon/fonts/72-Bold.woff2,/theme/UI5/sap/ui/core/themes/sap_horizon/fonts/SAP-icons.woff2and others, but fails with error404
I checked the dist folder and found that it only contains css, but no font files.
For testing I copied the requested font files to the corresponding folders and re-built and re-deployed the theme. It worked without any 404s.
Describe the solution you'd like
It would be nice to have the possibility to create a self-contained theme, like the self-contained mode works for apps.
Additional information
The theme is deployed to a CF HTML5 repository (but it would be the same when deploying to another custom server).
Thanks a lot!
Lennart
- 主要言語
- JavaScript
- スター
- 509
- フォーク
- 82
- 平均マージ
- 1日 5時間
- マージ済み PR(30日)
- 50
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
UI5/cli のほかの issue
-
Build cache: buildThemes cache is invalidated by irrelevant library.js / .library content changesオープンmodule/ui5-builder module/ui5-fs module/ui5-project
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
module/ui5-project
難易度 4/5 3〜5日 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
[ROADMAP] UI5 CLI 6.0 / Specification Version 6.0再び着手できるかも @flovogt が 69 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンroadmap
UI5/cli#1485 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
build excludes from application project are not applied to dependencies再び着手できるかも @flovogt が 43 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
UI5/cli#1446 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Option to specify custom UI5 config for workspace dependency resolution対応中かも @flovogt が 169 日前に担当しました。 オープン
UI5/cli#1369 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
🔧 in development
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
p5.js 2.0+
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
processing/p5.js#9295 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
status: needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
mastra-ai/mastra#27210 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
content html
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100