Include fonts in themes (standalone build for `theme-library`)
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- javascript
- Domaine
- build-system, tooling
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- JavaScript
- Étoiles
- 509
- Forks
- 82
- Merge moyen
- 1 j 3 h
- PR mergées (30 j)
- 54
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de UI5/cli
-
Build cache: buildThemes cache is invalidated by irrelevant library.js / .library content changesOuvertemodule/ui5-builder module/ui5-fs module/ui5-project
Difficulté 3/5 1-2 jours Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour
-
module/ui5-project
Difficulté 4/5 3-5 jours Accessibilité débutants 64/100
Les mainteneurs répondent en général sous 1 jour
-
[ROADMAP] UI5 CLI 6.0 / Specification Version 6.0Peut-être à nouveau libre @flovogt l’a pris il y a 70 jours, et aucune pull request n’est ouverte. Ouverteroadmap
UI5/cli#1485 · 1 réaction · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
build excludes from application project are not applied to dependenciesPeut-être à nouveau libre @flovogt l’a pris il y a 44 jours, et aucune pull request n’est ouverte. Ouverte
UI5/cli#1446 · 3 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Option to specify custom UI5 config for workspace dependency resolutionPeut-être pris @flovogt l’a pris il y a 170 jours. Ouverte
UI5/cli#1369 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Issues similaires
-
[Website] Catalog: unknown sort value and mixed-case technology in the URL break the filtersPeut-être pris @barbierajput378-pixel l’a pris aujourd’hui. Ouvertearea/website framework/jekyll help wanted language/css language/javascript language/markdown
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
meshery/meshery.io#3088 · 1 commentaire ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
firecrawl/firecrawl-mcp-server#548 ·
Les mainteneurs répondent en général sous 1 jour
-
Area:WebGL p5.js 2.0+
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
processing/p5.js#9302 ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
documentation good first issue hacktoberfest
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
wassim-azi/agy-powerline#47 ·
Les mainteneurs répondent en général sous 1 jour