-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation
Description
In the c-icon there is a not (always) working condition. We should investigate if this is still necessary. In a project svgs sometimes were rendered as an image instead of a svg.
I removed it with just use "utils/svg/icon" because there it is also possible to render the icon as an image.
The whole c-icon, asset, svg structure and what renders what and when is kind of confusing. We should write a short documentation for it.
{{- with partial "utils/asset" (dict
"context" $params
"globals" $globals
"options" (dict "class_name" $class)
) -}}
{{- . -}}
{{- else -}}
{{- partial "utils/svg/icon" (dict
"context" $params
"globals" $globals
"options" (dict "class_name" $class)
) -}}
{{- end -}}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation