-
-
Notifications
You must be signed in to change notification settings - Fork 614
XWIKI-23961: Inconsistencies in the "underline inline links" preference #5136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -189,16 +189,18 @@ body { | |
| & .vertical-menu, // In vertical menus (user menu, syntax guide, ...), do not underline the menu items. | ||
| & .jstree-xwiki, // Do not underline links in jstrees | ||
| & .xwiki-livedata .cell .displayer-link, // Do not underline links that are in their own livedata cell | ||
| & .xwiki-livedata .cell .breadcrumb // Do not underline links that are in breadcrumbs in livedatas | ||
| & .breadcrumb, // The breadcrumb contains enough presentation to distinguish it from neighboring text. | ||
| & nav, & *[role="navigation"] // Navigation nodes are meant to contain anchors. This meaning is most of the time conveyed through the style | ||
| { | ||
| & a { | ||
| .not-inline-link(); | ||
| } | ||
| } | ||
|
|
||
| a { | ||
| &.user-name, &.group-name // Usually user names and group names displayed with the userDisplayMacro | ||
| &.user-name, &.group-name, // Usually user names and group names displayed with the userDisplayMacro | ||
| // are next to the user avatar. This specific rule can be removed once XWIKI-22269 is fixed. | ||
| &.search-result-version // The search result version is distinct from neighboring text. | ||
| { | ||
| .not-inline-link(); | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Generally-speaking I'm really not fond of all these specific lists because they are hardcoding dependencies and creating a bad dependency between the flamingo skin and specific extensions that it has to know. Thus, they don't address the generic case . It would be much better to have a single To give a specific example, |
||
|
|
@@ -233,8 +235,8 @@ body { | |
| text-decoration: underline; | ||
| } | ||
| } | ||
|
|
||
| &.preference-underlining-no { | ||
| /* We make sure the 'No underlining' preference reflects the legacy behaviour, which still underlined when hovering.*/ | ||
| &.preference-underlining-no:not(:hover):not(:focus) { | ||
| a { | ||
| text-decoration: none; | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -508,10 +508,10 @@ | |
|
|
||
| #macro (displaySearchResult_attachment $searchResult) | ||
| <h2 class="search-result-title"> | ||
| $services.icon.renderHTML('attach') | ||
| #set ($attachmentURL = $xwiki.getURL($searchResultReference)) | ||
| #set ($downloadHint = $services.localization.render('core.viewers.attachments.download')) | ||
| <a href="$attachmentURL" title="$escapetool.xml($downloadHint)"> | ||
| $services.icon.renderHTML('attach') | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems you're moving the icon as part of the link, why? Why change that suddenly and in this PR (it seems it's not the topic of this PR to address that). Thx
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because we have a rule to not underline links with an image/icon contained in them. When I looked at this UI, it looked like it should have matched that rule, but because of this slight difference in DOM it wouldn't. If we don't do this, we need to add
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes, I understood this but I don't think it's a valid reason to make that change. We need to want to make the icon clickable. Is that what we do in general and elsewhere? Is that something we really want? At first sight, it looks a bit weird to me to do that. |
||
| $escapetool.xml($searchResultReference.name) | ||
| </a> | ||
| #set ($attachmentHistoryURL = $xwiki.getURL($searchResultReference, 'viewattachrev', $NULL)) | ||
|
|
@@ -553,8 +553,7 @@ | |
| #set ($titleURL = $xwiki.getURL($searchResultReference, 'view', "language=$searchResult.locale")) | ||
| #end | ||
| <h2 class="search-result-title"> | ||
| $services.icon.renderHTML('file-white') | ||
| <a href="$titleURL">$escapetool.xml($searchResult.title_)</a> | ||
| <a href="$titleURL">$services.icon.renderHTML('file-white') $escapetool.xml($searchResult.title_)</a> | ||
| #if ($showLocale) | ||
| <span title="$escapetool.xml($services.localization.render('solr.result.language'))" | ||
| class="search-result-language" >($escapetool.xml($searchResult.locale))</span> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, we weren't highlighting the breadcrumb at the top of pages, what was the rule preventing that and now that you've added the
navexclusion, shouldn't we remove the specific rule for that breadcrumb?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The breadcrumb at the top of pages is not in the content. The base of the "inline" filter is considering all links in the content are inline and all links outside are not.
xwiki-platform/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/less/general.less
Lines 165 to 168 in 7dc7b0a