Problem/Motivation
When changes from the default icon to the other, it is very difficult.
As previously described in #3198770: Add template for the icon, 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().
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3281593-2.patch | 8.5 KB | tom konda |
Issue fork extlink-3281593
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
tom kondaHere is a patch for this proposal.
Comment #3
smustgrave commentedCan 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.
Comment #4
smustgrave commentedComment #5
smustgrave commentedWill have to also take into account that jquery and tel: has been added too
Comment #8
smustgrave commentedRe-rolled for jquery removal and to include tel link too.