Include fonts in themes (standalone build for `theme-library`)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript
- Área
- build-system, tooling
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- JavaScript
- Estrellas
- 509
- Forks
- 82
- Merge medio
- 1 d 5 h
- PR fusionados (30 d)
- 50
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de UI5/cli
-
Build cache: buildThemes cache is invalidated by irrelevant library.js / .library content changesAbiertomodule/ui5-builder module/ui5-fs module/ui5-project
Dificultad 3/5 1-2 días Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
module/ui5-project
Dificultad 4/5 3-5 días Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
[ROADMAP] UI5 CLI 6.0 / Specification Version 6.0Quizá libre de nuevo @flovogt la tomó hace 69 días y no hay ningún pull request abierto. Abiertoroadmap
UI5/cli#1485 · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
build excludes from application project are not applied to dependenciesQuizá libre de nuevo @flovogt la tomó hace 42 días y no hay ningún pull request abierto. Abierto
UI5/cli#1446 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Option to specify custom UI5 config for workspace dependency resolutionPosiblemente ocupada @flovogt la tomó hace 169 días. Abierto
UI5/cli#1369 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
Issues similares
-
internal os specific
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
frostney/GocciaScript#1688 ·
Los mantenedores suelen responder en 1 día
-
🐞 bug pending triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
CircuitVerse/CircuitVerse#8031 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 8 días
-
docs(stream-protocol): document messageMetatadata on start/finish and the message-metadata chunkPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertofactory-active task-identify-harness-labels-done task-identify-issue-type-done
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
vercel/ai#23375 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 7 días