-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Remove svg shadows #7319
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
Remove svg shadows #7319
Conversation
Signed-off-by: Marin Treselj <marin@pixelipo.com>
Signed-off-by: Marin Treselj <marin@pixelipo.com>
|
Gallery and Talk apps are known to use icons that were affected by this PR; Other apps should not be affected by this change (but please test if you know of icons being used elsewhere) |
Codecov Report
@@ Coverage Diff @@
## master #7319 +/- ##
============================================
+ Coverage 50.86% 50.91% +0.05%
- Complexity 24538 24698 +160
============================================
Files 1584 1586 +2
Lines 93794 94113 +319
Branches 1358 1361 +3
============================================
+ Hits 47705 47919 +214
- Misses 46089 46194 +105
|
|
I think the play and pause icons are also used by the audio player app (dont remember the name). Would also be nice to not remove icons in the late beta/rc phase. |
|
I generally agree, @nickvergessen but (there's always a but) 😄
If keeping the icons will allow this to be merged in 13, then I will do it right away. So? |
Yes - I would not merge it if it breaks with existing apps. Having the css classes there already would be a nice improvement. So apps can adjust but don't loose support. I would say, that dropping of the images is fine for 14 only. |
Signed-off-by: Marin Treselj <marin@pixelipo.com>
|
Done, @MorrisJobke @nickvergessen those icons are 90% not used anywhere (so they will not be loaded on pages at all), but it's better to keep them here for safety reasons in NC13. In general, this is part of the #5157 task. When I'm finished with it, I'll add documentation so it will be official/obligatory from NC14 |
|
@pixelipo thanks, the main issue is that our icons have no "defined" public. Some APIs for example use the images directly without CSS, so removing them breaks no matter which fallbacks you add for CSS. If there was no beta out, I'd be fine with dropping images etc. But after a beta people test their apps once and assume they will just continue to work fine ;) |
|
The icon-white filter isn't suitable for buttons with icon and text since it will revert the text too. |
|
@skjnldsv I'm not sure that is an actual problem. If a text is black, than it means the button has white background, so nobody would use You only need Perfect example is the searchbox in the header. I just did a quick test and it can easily be made to use icon-white property. |
|
@pixelipo Hum, good point. So we should add this in the documentation to explain that you should not change the font colour as everything will be handled by the filter. :) |
|
@pixelipo icon-shadow only makes sense in connection with icon-white anyway, no (or if the icon is white itself, in which case it should have the icon-white class)? So icon-shadow should be a subitem of icon-white, not the other way around. Cause not all white icons need shadow, but all shadowed icons are white. |
Signed-off-by: Marin Treselj <marin@pixelipo.com>
|
That makes sense, @jancborchardt - I've pushed the simplified CSS definitions. Please test again, especially in Talk and Gallery apps. |
|
Makes more sense yes! :) |
|
Any plans to merge this soon? Please keep in mind that related PR was already merged in Gallery, so that app is broken on master until this is merged, too... |
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
MorrisJobke
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.
I fixed a syntax error in the scss. 👍
|
@MorrisJobke was the test failing before your fix? |
No - it was a drone issue. |
@nextcloud/designers next step in cleaning up icons.
Fixes #5593