Skip to content

Fix external link icon going to new line alone#3118

Merged
adriendupuis merged 6 commits into
5.0from
enh-external-link-css
Jul 23, 2026
Merged

Fix external link icon going to new line alone#3118
adriendupuis merged 6 commits into
5.0from
enh-external-link-css

Conversation

@adriendupuis

@adriendupuis adriendupuis commented Apr 1, 2026

Copy link
Copy Markdown
Contributor
Question Answer
JIRA Ticket
Versions
Edition

Before, the icon indicating an external link can go to new line by itself.
For example, https://doc.ibexa.co/en/5.0/release_notes/ibexa_dxp_v5.0/#special-characters-in-online-editor within a 1590px width viewport.
image

With this PR, this icon can't be alone on a new line.
For example, https://ez-systems-developer-documentation--3118.com.readthedocs.build/en/3118/release_notes/ibexa_dxp_v5.0/#special-characters-in-online-editor within a 1590px width viewport.
image

Because of :after, the icon is not really in the link, it's like another content element following it.

The fix idea is to set the icon as a background image of the link with some padding on the right to have room for it. So, when wrapping the tag, "padding+background=icon" is attached to link content's last word.

Checklist

  • Text renders correctly
  • Text has been checked with vale
  • Description metadata is up to date
  • Redirects cover removed/moved pages
  • Code samples are working
  • PHP code samples have been fixed with PHP CS fixer
  • Added link to this PR in relevant JIRA ticket or code PR

@github-actions

github-actions Bot commented Apr 1, 2026

Copy link
Copy Markdown

Preview of modified files: no change to preview.

@sonarqubecloud

sonarqubecloud Bot commented Apr 2, 2026

Copy link
Copy Markdown

Comment thread tools/api_refs/.phpdoc/template/css/custom.css.twig Outdated
@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown

Summary

Status Count
🔍 Total 763528
🔗 Unique 15039
✅ Successful 6328
⏳ Timeouts 0
🔀 Redirected 0
👻 Excluded 757200
❓ Unknown 0
🚫 Errors 0
⛔ Unsupported 0

Full Github Actions output

@adriendupuis
adriendupuis marked this pull request as ready for review July 22, 2026 08:01

@mnocon mnocon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@adriendupuis
adriendupuis merged commit 4712ac3 into 5.0 Jul 23, 2026
12 checks passed
@adriendupuis
adriendupuis deleted the enh-external-link-css branch July 23, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants