Needs work
Project:
Drupal core
Version:
main
Component:
CSS
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Sep 2015 at 10:34 UTC
Updated:
29 Nov 2021 at 13:49 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
pguillard commentedLike this ?
Comment #3
pguillard commentedComment #5
pguillard commentedI wonder if this is still needed ?
Here is a re-rolled patch
Comment #7
pguillard commentedComment #8
pguillard commentedComment #9
pguillard commentedComment #11
manjit.singh@pguillard seems like patch is not working well on local.
I have checked a UI and the "person.svg" has not been called in css. Please check the screenshot.
may be there is problem with the embedding CSS file in seven.libraries.yml
Comment #12
hog commentedComment #13
andypostdo we really need that on each page?
Comment #14
Sumit kumar commentedAdding Patch for this
Comment #15
andypostto trigger testing
Comment #16
andypostthis should extend toolbar library so loaded only when toolbar module enabled
Comment #17
finnsky commentedadded condition for this css.
same idea as in https://www.drupal.org/node/2566855#comment-10823376
Comment #18
finnsky commentedComment #19
andyposttrailing whitespace
Comment #20
finnsky commentedfixed
Comment #21
manjit.singhComment #22
manjit.singhNeeds reroll for 8.1.x-dev.
Comment #23
pguillard commentedPatch rerolled on 8.1.x-dev.
Comment #25
pguillard commented.. and still applies to 8.2.x
Comment #26
hog commentedComment #28
hog commentedEdited path to icon.
Comment #29
hog commentedPatch works correct.

Comment #30
hog commentedComment #31
andypostDo not rtbc own patches
Comment #32
kostyashupenkoPatch from #28 looks ok on my side

Comment #33
star-szrThanks everyone who has worked on this so far. The patch here is not moving, it's copying (doesn't match up with title/issue summary).
I don't see it being discussed in this issue but we could potentially remove the CSS entirely from the user module as long as we ensure the Stable version is still loaded. That's one of the main purposes of the Stable theme – to provide a backwards compatibility layer.
Comment #34
hog commentedComment #35
andypostThis break a lot of things
all themes that override this library will fail
unneeded
Comment #37
hog commentedComment #38
hog commentedComment #41
hog commentedComment #42
joginderpcIt seems that we are not on right track to moving the css to Seven theme. As mentioned in Screenshot the path is showing for Stable theme. Please check.
Comment #43
hog commented@joginderpc, check pls https://www.drupal.org/node/2566831#comment-11126239.
If we move code to Seven we have issue in Bartik & another themes - icon in toolbar not display. As this themes are subthemes for Stable, icons in stable theme works ok & we not need to copy this code to each theme.
Comment #44
hog commentedComment #45
andypostPatch makes sense to me
Stable actually the one that used so makes no sense to keep the same file in user module.
So probably we need to re-title issue subject cos no actual changes are happen except removal styling from user module.
Suppose @Cottser should decide here
Comment #46
joginderpcYa that's fine @HOG and yes now the title need to be changed @Cottser need to help on this.
Comment #47
manjit.singhComment #48
star-szrI don't quite follow the logic here anymore, maybe an issue summary update would help indeed :)
Based on what we did in #2566771: [Voltron patch] Move all remaining *.theme.css to Classy I have a couple thoughts:
I would say it makes more sense (based on what we were doing before 8.0.0 and the fact that we have Stable now) to remove the CSS from core leaving the library intact and leave Stable alone. But this assumes that we actually do want to remove all toolbar icons from the core CSS and this decision shouldn't be based on the fact that it's loading from Stable now. No CSS is loaded directly from core modules unless you go base theme-less which means you don't get backwards compatibility. Based on this train of thought I'm tentatively retitling the issue.
Regarding issue scoping this change seems like it's too small. If we go along the route of removing all the toolbar icons from the core CSS I think we'd be committing lots of tiny patches and potentially leaving the toolbar in a very weird state (in core sans base theme). There's also shortcut's star icon and such. If we want to keep pursuing the removal of the icons from the toolbar in core CSS I think we need a larger patch or we need to Voltron again (meaning get a bunch of small patches ready and roll them together into one patch).
Comment #49
joginderpcYes i agree with @cottser we need to make tiny patches and club them in one big patch so the tester also track the changes.
Comment #50
star-szrWe don't need more tags :)
Comment #52
deepakkumar14 commentedSubmit patch for this issues.
Reviews this patch.
Comment #53
deepakkumar14 commentedComment #55
deepakkumar14 commentedI have submitted new patch for this.
Please review this.
Comment #57
imshivani commentedSubmitted patch for the issue. You can review the patch.
Comment #58
imshivani commentedComment #60
Sumit kumar commentedComment #61
pguillard commentedShould pass tests
Comment #62
pguillard commentedComment #64
hog commentedComment #65
hog commentedRerolled patch.
Comment #67
hog commentedComment #68
hog commentedComment #69
hog commentedI rerolled Pguillard's patch. I think it's good decision.
Comment #73
starshapedRemoved reference to drupal.user.icons in user.libraries.yml as this was causing the kernel test to fail.
Comment #74
phenaproximaThank you, @starshaped, for fixing the tests!
Unfortunately, I gave this a quick manual test and discovered that it still appears to be broken, in that there is no user icon in the toolbar when I switch into Seven with this patch applied. So that will need to be addressed :(
Comment #75
phenaproximaDid some git bisect work on this with @starshaped and @xjm at DrupalCamp Montreal.
It turns out this will need to be re-rolled because user.icons.theme.css was renamed to user.icons.admin.css, in 5cb0783 (#2566771: [Voltron patch] Move all remaining *.theme.css to Classy). And it definitely needs an issue summary update.
Comment #76
phenaproximaThe IS, she is fixed.
Comment #77
phenaproximaComment #78
phenaproximaOkay, something here is strange.
My current understanding is that the following things need to happen -- based on a heady combination of the BC policy for the core themes, and the current way that things seem to be put together:
user_toolbar()makes mention of it).I'd like a front-end maintainer to confirm this understanding before anything further happens here...
Comment #79
edysmpFixed needs reroll.
Comment #80
manjit.singhComment #81
phenaproximaRemoving bad tag.
Comment #88
bandanasharma commentedRe-roll the patch for d9.
Comment #90
djsagar commentedHi @bandanasharma,
Patch is applied after applied patch icon is gone in drupal 9.
Thanks!
Comment #91
catchThe patch doesn't look right to me. The patch should be moving the files to Seven and adding a new library definition there.
Additionally, rather than removing the definition from user module, it should be deprecated for removal in Drupal 10.
Comment #93
avpadernoComment #94
vikashsoni commentedHi @bandanasharma,
Patch applied successfully
After patch icon is gone
Thanks for the patch
For ref sharing screenshots .....
Comment #95
bnjmnmRemoving credit for #94. Screenshots were already provided in #90. Both sets of screenshots are also used as evidence of success, but that's based on a misunderstanding of the issue requirements - the goal is not to remove the user icon from the toolbar, it's to remove it as a core library, and move it to a theme.
Based on the current issue summary, this is also likely unnecessary as core themes are now decoupled from Classy. This should be updated if there's an issue to ba addressed.