-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[5.2] atum light mode - Fix modal window link color #44176
Conversation
I have tested this item ✅ successfully on 6150056 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44176. |
Please also check #43708 |
@RickR2H Adding the |
@RickR2H Can you add |
I‘ve restored the previous human test result as the changes after that were only hints for PHPCS. |
@RickR2H Please don’t do unnecessary branch Updates if there are no conflicts as the branch update invalidates the human test counter and I cannot watch your PR all day long to restore the tests. |
@dgrammatiko @richard67 I can't get drone to behave... Any tips? |
With the previous version with my proposal it was ok. So I suggest to wrap the method again into the |
I have tested this item ✅ successfully on c21bf32 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44176. |
I have tested this item ✅ successfully on c21bf32 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44176. |
@RickR2H Could you check my 2 suggestions for how to get rid of these PHPCS hints? It would not need new human tests if you apply them. |
Why use PHP to manipulate CSS colours, when this can be acheived in native CSS with 1 line of code? |
Because BS is using a css var of type |
I've restored the previous human test results in the issue tracker as the commits which have invalidated the test count were only related to making PHPCS happy. In addition I have tested that the PR still works with the last change to an anonymous function. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44176. |
Could be a nice option to replace the current functions. More clean! For now the the colors nor loading issues is fixed. This is a nice option to add with a new PR. Some logic is used in the index.php |
July 2024 might be too soon: Anyways if the maintainers are ok with it, go for it, it's not my call. I just pointed that the BS requires a weird value and that the relative color from is a new addition 🤷♂️ |
@RickR2H To be honest, to me the hover colour seems to be inconsistent now when comparing dark mode and light mode. In light mode it is still black with your PR, so when changing to dark mode I would expect it to be white. Or vice versa, when coming from dark mode where it is light blue with your PR, and changing to light mode, I would expect it to be some other kind of blue but not black. But maybe that's just me. |
I guess there will be a better solution. I have no clue why the values have to calculated. We can make then fixed variables which is a better option. Probably is has to do with the backend colors... |
The blame here goes to Bootstrap, they store the rgb values as a coma separated val:
Nope, search the bs css and you'll see how these values are used
What Charlie suggested but the browser support is only few months... |
This is consistent with index.php so I'd merge this if it fixes the bug - then at least if we ever change to @C-Lodder 's way in the future (j6 or whatever) then we can do it consistently. Only thing I'd suggest is that we have this the error_login.php and error_full.php too so we have the same set of css variables in all 3 files. |
Thanks @RickR2H ! |
Pull Request for Issue # .
Summary of Changes
With the browser in dark modus, In the backend (Atum template) the links have the wrong color when the template is toggled to the light modus. The reason is that in the component.php only the dark color scheme colors are loaded if the browser is is dark mode. My fix will make sure that the correct colors are used, depending or the color scheme selected.
In dark modus the default hover color in the modal is defaulted to white, which is not correct. This PR fixes also the hover color which is now set to a lighter shade of the default link color.
Testing Instructions
Apply the PR
Actual result BEFORE applying this Pull Request
The link is too light which is a accessibility issue.
In dark mode the hover color white
Expected result AFTER applying this Pull Request
The link has the correct color.
In dark mode the hover color light blue
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed