XWIKI-22120: Live Data links are underlined although 'Underline links' setting is set to 'Only Inline Links' #3085
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Jira URL
https://jira.xwiki.org/browse/XWIKI-22120
Changes
Description
** Replaced the user avatar alternative text.
** Moved the avatar inside of the link. This provides multiple benefits one of which is that now the link hits the
:has(img)
selector to prevent underlining :)Clarifications
alt
property on the picture.** the avatar can now be clicked to follow the link.
** the link hits the
:has(img)
selector to prevent underlining :) This selector is quite generic and added for cases such as this one :)Screenshots & Video
All screenshots here display UI examples after the changes proposed in this PR. The current user is the wiki admin and has the
Only inline link
underlining preference selected.We can see that the reported issue is solved, the links in the table are not underlined anymore :)
The change to the structure of the DisplayUser template might break some UI. However we can see here that this UI relying on an avatar wrapper is doing alright. Note that most of the styles about this template come from
xwiki-platform/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/less/users.less
Line 17 in 7e9ccc5
>
direct child operators, so moving the avatar down a level does not break any selector here).Executed Tests
Manual tests with Firefox as seen above.
Expected merging strategy