Problem/Motivation
See discussion in: #2195695: Admin UIs on the front-end are difficult to theme
See: #2489460: [Meta] Move module.theme.css files to Classy or Seven
Quickedit is an administrative UI component that appears on the frontend of sites. It's important that they are consistent with the Seven style guide and that other admin themes can control the look and feel.
Proposed resolution
Our CSS standards define module CSS as: “the minimal styles needed to get the module's functionality working.”
Theme CSS is defined as: “extra styles to make the module's functionality aesthetically pleasing. ”
Move the theme styling into the Seven theme
Add a library alter hook to load the admin theme CSS. Example: #2341221: Node preview bar has usability issues, is difficult to use on mobile, not usable without Bartik, and does not align with the Seven style guide and current toolbar designs
Remaining tasks
Write the patch.
Test.
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#24 | interdiff.txt | 635 bytes | therealssj |
#24 | 2566847-24.patch | 18.05 KB | therealssj |
#21 | quickedit-save-After.mov | 3.77 MB | Manjit.Singh |
#21 | quickedit-save-Before.mov | 3.81 MB | Manjit.Singh |
#20 | screenshot-seven.png | 98.1 KB | therealssj |
Comments
Comment #2
irina.rozite CreditAttribution: irina.rozite at Wunder commentedHere is patch. Added screenshots how quick edit looks when admin theme is Seven and when is Stark.
Comment #3
gints.erglis CreditAttribution: gints.erglis commentedPatch #2 applies, get the same result.
Comment #6
LewisNymanBack to RTBC
Comment #8
irina.rozite CreditAttribution: irina.rozite at Wunder commentedFirst patch didn't applied anymore, because of changes in seven.info.yml file. Patch and interdiff added.
Comment #9
irina.rozite CreditAttribution: irina.rozite at Wunder commentedComment #10
Manjit.SinghReroling a patch
Comment #12
Manjit.Singhanybody have any idea, why it fails. I mean patch applied on my local sucessfully but automated test failed to apply :(
Comment #14
Wim LeersComment #15
Wim Leers@Manjit.Singth: you rolled it against 8.1, but tested against 8.0.
Comment #16
Manjit.Singhoppsss :( Now queued for 8.1 .. let see what happened.
Comment #17
andypost80 chars limit
Themes should use library override for that
Comment #18
tstoecklerComment #19
emma.mariaAdding tags
Comment #20
therealssj CreditAttribution: therealssj commentedPatch looks good.
But there is this transition when moving from one component to another which IMHO is unnecessary.
Comment #21
Manjit.SinghLoader/spinner is not working when we are saving any content. Please check the screencast for better understanding.
Comment #22
Wim Leers@Manjit.Singh: Thanks for your manual testing! Great find :) (Also, wow, your computer is very slow, or more likely: you have Xdebug enabled.)
This clearly needs work for #21.
Comment #23
therealssj CreditAttribution: therealssj commentedThe loader file doesn't exist within the images folder for the seven theme and hence does not load.
I have a doubt, why are we loading the image from the theme's images folder instead of quickedit module's image folder?
Comment #24
therealssj CreditAttribution: therealssj commentedPatch using spinner image from quickedit module image folder.
Tested in local environment.
Comment #25
therealssj CreditAttribution: therealssj commentedComment #26
Manjit.SinghInitially, when we hit save button, it turns into Gray and icon-throbber is made according to that. but now we have change the design of button after hitting. So i guess we have to update icon-throbber.gif file also.
@Wim any thoughts ?
Comment #27
Wim LeersI think we should either:
Comment #28
therealssj CreditAttribution: therealssj commentedI think we should go with option 2 and put throbber css in quickedit module.
otherwise every theme will need to have a copy of throbber gif which is just redundant.
Comment #29
Wim LeersAgreed!
Comment #31
tkoleary CreditAttribution: tkoleary at Acquia commentedThis is a useful patch but I'm concerned about where we are putting the CSS. It's by no means a given that the user wants 'admin things' on the front end to match the administrative theme. I'd argue that they are two different things and that it's possible that we need a separate library for all of these things that is *not* Seven theme. I discussed this with Laurii in Dublin and I think he feels the same way.
Comment #32
lauriiiI wrote a bit longer comment about my concerns a year ago here. I think it's a great idea to move design decisions away from modules but I don't believe the right solution is to move them to an admin theme. We need something a little more abstract so that we don't end up having scalability issues with contrib.
Comment #33
tkoleary CreditAttribution: tkoleary at Acquia commentedI totally agree. Feels like it should be a library and not in any theme.
Comment #34
Wim LeersPer #32 and #33.