Links that are rendered with a css rule of display: block gain the .ext class but no appended span.
Not sure if there is reasoning behind this and it is possible to workaround but I have tested some scenarios locally by altering this statement if ($link.css('display') === 'inline' || $link.css('display') === 'inline-block') and have noticed no issues.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

thecraighammond created an issue. See original summary.

tostinni’s picture

I found the same on the Drupal 7 version, so adding block to this statement allow the span to be added.

I attach a patch for D7 and for D8.

rconstantine’s picture

i needed to apply the same change to the minified version. syntax was slightly different. in any case, it works.

elachlan’s picture

Version: 8.x-1.0-alpha2 » 8.x-1.x-dev

Please re-roll the patch. It does not apply. It needs to be against dev.

tostinni’s picture

Status: Needs work » Needs review
FileSize
701 bytes

Here it is.
Thanks

  • elachlan committed d46ae84 on 8.x-1.x authored by tostinni
    Issue #2773545 by tostinni: Links with display: block; do not get...
elachlan’s picture

Status: Needs review » Fixed

Thanks

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

SpadXIII’s picture

Does this need to be backported to D7 ?
ps. the patch in #2 still applies to the latest D7-release.

PieterDC’s picture

@SpadXIII it does need to be backported to D7.
Rerolled the patch against 7.x-1.x
See attached.

Dear maintainer, can you reopen the issue and change the issue version to 7.x-1.x-dev?
I already added 'Needs backport to D7' tag.

xlin’s picture

Rerolled against 7.x-1.x, patch attached.

xlin’s picture

Rerolled against 7.x-1.2.0, patch attached.

xlin’s picture

Rerolled against 7.x-1.2.1, patch attached.