[Feature] Добавить возможность включать стили в проект без @font-face правил #1047
Closed
3 of 9 tasks
Labels
priority:high
level of urgency - high
source:requested
The tag indicates that the information or action being discussed was initiate
state:ready
ready for release (pass tested)
Milestone
Библиотека
@prizm-ui/core
@prizm-ui/components
@prizm-ui/install
@prizm-ui/icons
@prizm-ui/flag-icons
@prizm-ui/theme
@prizm-ui/charts
@prizm-ui/ast
@prizm-ui/nx-plugin
Предложение
В пакетах
@prizm-ui/components
,@prizm-ui/icons
,@prizm-ui/theme
имеются стили, которые необходимы для корректного отображения компонентов Prizm. Так же в этих стилях есть конструкции@font-face
, регистрирующие нужные шрифты.Например:
Т.к. в урле до шрифта естественно нет ни какого baseHref для текущего приложения, браузер пытается грузить данный шрифт относительно хоста. В итоге получаем 404 ошибку.
Необходима возможность включать в проект стили без регистрации самих шрифтов через
@font-face
. Чтобы регистрация шрифтов происходила в самом приложении, динамически подставляя нужный baseHref.The text was updated successfully, but these errors were encountered: