Skip to content

CSS Template is missing one class location #597

@MatthiasRossbach

Description

@MatthiasRossbach

Overwriting a custom icon font in a project with DB UX is not working as described in the documentation, because the CSS Template is missing one location

https://github.com/db-ux-design-system/icon-font-tools/blob/main/src/commands/generate-icon-fonts/utils/styles/font-face.css

.{{prefix}} {
	font-family: '{{fontname}}' !important;
	font-style:normal;
	font-weight: normal;
}

.icon-family-{{fontname}}::before,
[data-icon-family="{{fontname}}"]::before,
[data-icon-family-before="{{fontname}}"]::before{
	--db-icon-font-family: '{{fontname}}';
}

The before class has to be the same has the font family class, otherwise it's not working (no icon-family prefix)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions