-
-
Notifications
You must be signed in to change notification settings - Fork 612
XWIKI-21584: Mentions do not have enough contrast #2638
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
Conversation
* Updated the default style of mentions
...form-mentions/xwiki-platform-mentions-ui/src/main/resources/XWiki/Mentions/MentionsMacro.xml
Outdated
Show resolved
Hide resolved
manuelleduc
left a comment
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.
Lgtm except for the border radius question. Thanks!
* Reverted changes on border radius
...form-mentions/xwiki-platform-mentions-ui/src/main/resources/XWiki/Mentions/MentionsMacro.xml
Outdated
Show resolved
Hide resolved
* Updated the name of the mention color parameters to better fit with the naming convention from the color theme * Added a parameter for the foreground color of the self mentions, with the default value similar to what was in its place previously
...form-mentions/xwiki-platform-mentions-ui/src/main/resources/XWiki/Mentions/Configuration.xml
Outdated
Show resolved
Hide resolved
...form-mentions/xwiki-platform-mentions-ui/src/main/resources/XWiki/Mentions/MentionsMacro.xml
Outdated
Show resolved
Hide resolved
* Removed the change in the service call * Added an update to a comment to make it clearer that this naming is poor
* Removed the name change in config and classes for the mentionColor
* Updated the translations * Replaced the new background variable with a new foreground variable to keep backward usability on the `color` variables
* Replaced the new background variable with a new foreground variable to keep backward usability on the `color` variables
* Fixed a prettyname
|
...form-mentions/xwiki-platform-mentions-ui/src/main/resources/XWiki/Mentions/MentionsMacro.xml
Outdated
Show resolved
Hide resolved
* Added the foreground getter as an API in the new script service.
|
Setting this PR as a draft until resolution of #2638 (comment) |
...iki-platform-mentions-api/src/main/java/org/xwiki/mentions/script/MentionsScriptService.java
Show resolved
Hide resolved
...ions/xwiki-platform-mentions-api/src/main/java/org/xwiki/mentions/MentionsConfiguration.java
Outdated
Show resolved
Hide resolved
* Added since annotations on the new script services. * Added a default return value for the default interface.
|
All comments have been addressed, this PR is ready for further review :) |
...mentions-default/src/main/java/org/xwiki/mentions/internal/DefaultMentionsConfiguration.java
Outdated
Show resolved
Hide resolved
surli
left a comment
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.
Sounds good to me if you fix the default value to be consistent and if you set all @Since values to be 17.7.0RC1 now.
|
Wouldn't it make more sense to move the color configuration to the color theme and use CSS variables to access them? I'm not saying this isn't okay as a "quick fix", I have just the feeling that from a technical/implementation point of view this is going in the wrong direction. In any case, it's good to address those last remaining contrast issues, thank you very much for that! |
Those variables are meant to be used exclusively by mentions so I don't think we want to make them part of the Flamingo ColorTheme. |
* Updated the version numbers. * Updated the styles to only rely on the CSS variables. * Fixed a small codestyle issue.
|
The PR is ready for review or a merge. |
surli
left a comment
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.
LGTM but feels like this should be backported to 17.10.x / 17.4.x, wdyt @Sereza7?
...iki-platform-mentions-api/src/main/java/org/xwiki/mentions/script/MentionsScriptService.java
Show resolved
Hide resolved
...ions/xwiki-platform-mentions-api/src/main/java/org/xwiki/mentions/MentionsConfiguration.java
Show resolved
Hide resolved
* Updated the default style of mentions * Updated the name of the mention color parameters to better fit with the naming convention from the color theme * Added a parameter for the foreground color of the self mentions, with the default value similar to what was in its place previously * Updated the translations * Replaced the new background variable with a new foreground variable to keep backward usability on the `color` variables * Fixed a prettyname * Added the foreground getter as an API in the new script service. * Added since annotations on the new script services. * Added a default return value for the default interface. * Updated the version numbers. * Updated the styles to only rely on the CSS variables. * Fixed a small codestyle issue. --------- Co-authored-by: Simon Urli <simon.urli@gmail.com> (cherry picked from commit 006624f)
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
* Updated the default style of mentions * Updated the name of the mention color parameters to better fit with the naming convention from the color theme * Added a parameter for the foreground color of the self mentions, with the default value similar to what was in its place previously * Updated the translations * Replaced the new background variable with a new foreground variable to keep backward usability on the `color` variables * Fixed a prettyname * Added the foreground getter as an API in the new script service. * Added since annotations on the new script services. * Added a default return value for the default interface. * Updated the version numbers. * Updated the styles to only rely on the CSS variables. * Fixed a small codestyle issue. --------- Co-authored-by: Simon Urli <simon.urli@gmail.com> (cherry picked from commit 006624f)
* Updated the default style of mentions * Updated the name of the mention color parameters to better fit with the naming convention from the color theme * Added a parameter for the foreground color of the self mentions, with the default value similar to what was in its place previously * Updated the translations * Replaced the new background variable with a new foreground variable to keep backward usability on the `color` variables * Fixed a prettyname * Added the foreground getter as an API in the new script service. * Added since annotations on the new script services. * Added a default return value for the default interface. * Updated the version numbers. * Updated the styles to only rely on the CSS variables. * Fixed a small codestyle issue. --------- Co-authored-by: Simon Urli <simon.urli@gmail.com>

Jira
https://jira.xwiki.org/browse/XWIKI-21584
PR Changes
View
Here,


123 456is a lambda user andAdministratoris the current user.vvv Before the PR
vvv After the PR
Note
This is a style change, but I also took the opportunity to remove hard-coded transparent colors. Hard coded is against best practice, and adding transparency does not make sense in this context, the mention is too small to cover anything.