Skip to content

Provide consistent configuration for Font Awesome icons (some are configurable, others only editable in HTML/TS) #6116

Description

@MMilosz

Is your feature request related to a problem? Please describe.

Currently, Font Awesome icon customization is inconsistent. Some icons can be easily customized via config.yml, while others are hardcoded directly into HTML/TS files (requiring a full UI rebuild to change)

Describe the solution you'd like

Make all Font Awesome icons configurable in the same way. Ideally in a way that does not require modifying suorce code or recompiling the frontend.

Describe alternatives or workarounds you've considered

The current workaround is to override or edit templates to change icons (and checking if an icon is already exposed in the configuration).

Additional information

Few examples:

icons:
metadata:
# NOTE: example of configuration
# # NOTE: metadata name
# - name: dc.author
# # NOTE: fontawesome (v6.x) icon classes and bootstrap utility classes can be used
# style: fas fa-user
- name: dc.author
style: fas fa-user

authority:
confidence:
# NOTE: example of configuration
# # NOTE: confidence value
# - value: 600
# # NOTE: fontawesome (v6.x) icon classes and bootstrap utility classes can be used
# style: text-success
# icon: fa-circle-check
# # NOTE: the class configured in property style is used by default, the icon property could be used in component
# configured to use a 'icon mode' display (mainly in edit-item page)
- value: 600
style: text-success
icon: fa-circle-check
- value: 500
style: text-info
icon: fa-gear

modalRef.componentInstance.confirmIcon = 'fas fa-trash';

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status
    👀 Needs Discussion / Analysis

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions