-
Notifications
You must be signed in to change notification settings - Fork 7
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
CRISTAL-422: Implement styles for external links #577
Conversation
* Implemented an icon for the external links as it is in XWiki Standard
skin/src/vue/c-view.vue
Outdated
display: inline-flex; | ||
} | ||
|
||
:deep(.wikiexternallink a:after) { |
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.
how does it behave in edit mode?
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.
@manuelleduc the editor does not use the XWiki css class wikiexternallink
so it won't work.
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.
Good point. But, the CCS should nonetheless be placed at a location where the external links will have the correct style applied once we start adding the right class.
If you want I can take over the PR for this part.
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.
I think you have more knowledge on that than me, so if it's not too much trouble for you, I actually prefer it. Otherwise, you can just point me in the right direction.
Support for external links in edit mode.
text-transform: none; | ||
line-height: 1; | ||
-webkit-font-smoothing: antialiased; | ||
font-size: 0.7rem; |
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.
Feels strange to fix the link size while it's probably something specific for each design system
I would limit this to only the additional icon (and any other think helping to distinguish visually external link), and nothing else.
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.
I tried this approach, but then the icon followed the main text size and became huge. Shoelace and Vuetify don't have specific styles for external links, so that's on us.
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.
ah right, I missed the style only applied on the :after
part, so all good.
Jira URL
https://jira.xwiki.org/projects/CRISTAL/issues/CRISTAL-422
Changes
Description
Clarifications
Screenshots & Video
Before:
![image](https://private-user-images.githubusercontent.com/149672322/403451099-39da1fa1-68ed-4991-a34e-2ba8650e90f1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTMxMTQsIm5iZiI6MTczOTI1MjgxNCwicGF0aCI6Ii8xNDk2NzIzMjIvNDAzNDUxMDk5LTM5ZGExZmExLTY4ZWQtNDk5MS1hMzRlLTJiYTg2NTBlOTBmMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQwNTQ2NTRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hNGQzZjU5ZGU1YTk1OGQzMjFlZGFhMmQ5YzY2NjY1NzE5ZGFmMzZjNTM1YzBhYTVkOGI5MWI5NjExNmJkODdjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.inqh0Rw1G9GUqIUbQA4i8CHyYFbpI3b9ciOZSoP1uzk)
After:
![Screenshot 2025-01-15 at 11 18 50](https://private-user-images.githubusercontent.com/149672322/403451774-57cc17bb-5f75-4990-94bd-1dddbcf1bbaa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTMxMTQsIm5iZiI6MTczOTI1MjgxNCwicGF0aCI6Ii8xNDk2NzIzMjIvNDAzNDUxNzc0LTU3Y2MxN2JiLTVmNzUtNDk5MC05NGJkLTFkZGRiY2YxYmJhYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQwNTQ2NTRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iN2M1MzMyZjk3ZWZlN2Q4ODg2NTI0OGMxNTYyYjk4NzdmNjM1NDgzYmNiYmEwMWM0NDNiMzRmYmJhYWZkMTMzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.tCB5fCgM45dMPZV8C_7-qEzYEmBt7V-m2UPJi5c1BZI)
Executed Tests
Expected merging strategy