Enable to customize an icon HTML output

Created on 20 May 2022, about 2 years ago
Updated 24 June 2024, 4 days ago

Problem/Motivation

When changes from the default icon to the other, it is very difficult.
As previously described in ✨ Add template for the icon Postponed: needs info , need to rewrite whole Drupal.extlink.applyClassAndSpan to customize icon HTML output on current implementation.

Proposed resolution

Implement icon HTML output using Drupal.theme() JavaScript functions.
If defines icon HTML output on Drupal.theme(), it is easier to override HTML output from an other theme, no need to rewrite whole Drupal.extlink.applyClassAndSpan().

✨ Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡―πŸ‡΅Japan Tom Konda

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Can this be turned to MR,

    May be a good scenario to add test coverage for
    Example test module that overrides this setting
    Test case verifying that.

Production build 0.69.0 2024