Problem/Motivation
There is no design for the slogan in the Seven theme. This primarily affects the update page as seen here.
The styles for this page are under core/themes/seven/maintenance-page.css. This stylesheet is also used by the install.php. During first installation the slogan won't be set, and if the page is revisited after installation the slogan will not be styled because the Seven theme did not account for it.
This happens in the context of drupal 8 core installation where the Seven theme is used by default as the administration theme. Installation profiles and distributions can set a different administration theme will not be affected for the missing style for the slogan in the Seven theme.
Proposed resolution
Remove the slogan from the install.php and update.php templates in the Seven theme and updated the styles.
Remaining tasks
In https://drupal.org/node/2230997#comment-8883137, it was proposed to refactor the markup and styles. Evaluate if this could be a separate issue.
In https://drupal.org/node/2230997#comment-8880859, it was identified an issue with the step list's right padding on RTL languages. This should go into a separate issue.
User interface changes
Slogan will not be rendered in the installation and updated pages when Seven is used as the administrative theme.
API changes
None.
Original report by @penyaskito
Follow-up from #2169765: Redesign update.php to be more consistent with the installation process. The site slogan seems to have been missed during this redesign.
Same applies for install.php
Comment | File | Size | Author |
---|---|---|---|
#74 | remove-the-slogan-in-update-php-2230997-74.patch | 3.13 KB | LewisNyman |
#74 | interdiff.txt | 1019 bytes | LewisNyman |
#72 | RTL After.png | 28.2 KB | ericski |
#72 | RTL Before.png | 23.27 KB | ericski |
#72 | LTR After.png | 32.96 KB | ericski |
Comments
Comment #1
cs_shadow CreditAttribution: cs_shadow commentedFixed markup for site slogan, any suggestions are welcome. Attached screenshots for reference.
Comment #2
tompagabor CreditAttribution: tompagabor commentedLooks good!
Comment #3
LewisNymanThanks for the patch. I need a little bit more time to review it. Having trouble with my local install
Comment #4
tim.plunkettComment #5
Bojhan CreditAttribution: Bojhan commentedWait, why do we even need a slogan here?
Comment #6
LewisNyman@Bojhan, true, but if it's printing right now then we might as well fix it.
The alignment of the slogan and the site name look slightly off.
The spacing between the two was irking me for some reason, in my eyes it looked a lot better with the following:
Comment #7
cs_shadow CreditAttribution: cs_shadow commentedDid the changes as suggested in #6. Attaching new patch and interdiff.
Comment #8
Bojhan CreditAttribution: Bojhan commented@Lewis Well I dont really understand fixing something that shouldn't be there in the first place.
Comment #9
Bojhan CreditAttribution: Bojhan commentedComment #10
lauriii#7 didn't work because set margins were overridden later.
Comment #11
yoroy CreditAttribution: yoroy commentedFixing this seems busy-work. Slogan has no place here. Do we re-focus this issue on removing it or close this and open a new one? I'd prefer just removing it in this one.
Comment #12
LewisNymanAlright I'm allowed to change my mind :P Let's throw it out.
Comment #13
lauriiiComment #14
StevenPatzComment #15
dinarcon CreditAttribution: dinarcon commentedStevenPatz's patch effectively removes the slogan. The template has a condition checking for the site slogan presence. The condition first checks for site name which pretty much will always be set. If it can be accounted as code clean up, this patch removes the check for site slogan.
Comment #16
lauriiiI don't think we need that second if any more because it doesn't catch anything.
Remember to change the status to Needs review after sending a patch, otherwise the testbot doesn't trigger.
Comment #17
StevenPatzComment #18
StevenPatzComment #20
LewisNymanLooks like this needs a reroll?
I guess we can remove this div and class as well?
Comment #21
StevenPatzComment #22
lauriiiThis line is intended wrong. After fixing this we're done :)
Comment #23
StevenPatzIs it one or two spaces? I'll have a reroll in a few seconds ( or later, not sure if the coder loung at DrupalCon is closing )
Comment #24
LewisNyman@StevenPatz It's two spaces.
Comment #25
lahoosascoots CreditAttribution: lahoosascoots commentedI am a new contributor at the contribution mentoring at Drupal Con. I am going to work on this issue to get more acquainted with the contribution process.
Comment #26
dinarcon CreditAttribution: dinarcon commentedFrom comment #20, we do need the wrapper div with the class because the selector used to style the title counts on that. It is
.name-and-slogan h1
This new patch adds it back and removed the second condition mentioned in comment #16.Edit: lahoosascoots, I had created the patch before seeing your comment. Please review mine and let's get this one in core :)
Comment #27
lahoosascoots CreditAttribution: lahoosascoots commentedNo worries, dinarcon. Reviewed the patch from #26 and it looks good. Going to leave the issue status as is until a more experienced contributor double checks my reviews.
Comment #28
stovak CreditAttribution: stovak commentedComment #29
stovak CreditAttribution: stovak commentedApplies cleanly. Removing "needs re-roll tag".
-t
Comment #30
LewisNyman@dinarcon Can we add the class to the h1 instead and remove the wrapper?
Comment #31
jstollerWorking on it.
Comment #32
dinarcon CreditAttribution: dinarcon commented@LewisNyman, sure. That requires updates to the styles though. I went ahead and did it by replacing the
.name-and-slogan h1
selector byh1.page-title
where appropriate. Please review.@jstoller, manual review would be helpful.
Comment #33
robert.laszlo CreditAttribution: robert.laszlo commentedI am testing this now.
Comment #34
robert.laszlo CreditAttribution: robert.laszlo commentedComment #35
robert.laszlo CreditAttribution: robert.laszlo commentedPatch applied cleanly and verified. See attached screenshot.
Comment #36
HaloFX CreditAttribution: HaloFX commentedTested, applied fine, slogan markup is gone.
Image attached.
RTBC +1
Comment #37
daviddemello CreditAttribution: daviddemello commentedLooks like slogan is still missing...
Comment #38
dinarcon CreditAttribution: dinarcon commented@daviddemello, there was no design for the slogan and it needs to be removed. We are removing it in this patch.
Comment #39
ericski CreditAttribution: ericski commentedAlso confirmed, see before & after images
Comment #40
jstoller@dinarcon: Margin was wrong for small screen sizes. Also, using h1 in the CSS was unnecessary specificity. The attached patch fixes both of these issues.
Comment #41
daviddemello CreditAttribution: daviddemello commentedResponsive screen shots
Comment #42
HaloFX CreditAttribution: HaloFX commented#40 applied fine, specificity of the H1 was removed.
RTBC +1
Comment #43
dinarcon CreditAttribution: dinarcon commentedGood catch @jstoller. Patch applies cleanly.
On responsive screenshots by @daviddemello I saw that long titles are cropped by the viewport. I added a css rule for it to wrap.
Note: In the interdiff you can see there is are margin-right and margin-bottom rules. I didn't use a shorthand because that is inheriting a margin top and bottom from another rule. It can be merged if considered properly.
Comment #44
arkiii CreditAttribution: arkiii commentedApplied patch and did not see slogan when viewing screen using different sizes.
Comment #45
darol100 CreditAttribution: darol100 commentedFor some reason you patch will remove the CSS from the "Drupal" header from the installer. `
Comment #46
dinarcon CreditAttribution: dinarcon commentedThanks @darol100. The installer uses the same stylesheet and that's why it breaks. During installation the slogan won't be set so we could update that template too to remove the slogan.
Working on a new patch.
Comment #47
dinarcon CreditAttribution: dinarcon commentedThis is the new patch. Please review it @darol100
Comment #48
dinarcon CreditAttribution: dinarcon commentedComment #49
darol100 CreditAttribution: darol100 commented@dinarcon
Everything seem to be working fine now.
The installation header is working fine....
And the patch seem to be working....
Great Job
Comment #50
darol100 CreditAttribution: darol100 commentedComment #51
jstollerThis just has two minor changes. On small screens, I increased the right margin on .page-title from 1.5em to 2em, so the text never bumps up against the step indicator. And on large screens, I added a right margin to .page-title, so long titles don't run up against the side of the install box. This made the special handling for RTL unnecessary
Comment #52
HaloFX CreditAttribution: HaloFX commentedApplied patch. Reinstalled Drupal, code on install page relating to header/slogan matches that on the update page.
Long page titles wrap and display nicely on view ports from 300px wide to 1920px.
Comment #53
dinarcon CreditAttribution: dinarcon commentedThanks @jstoller. Updated styles for long names to break on word for desktop too.
Comment #54
HaloFX CreditAttribution: HaloFX commentedPatch from #53 applies OK. Crazy long words in titles wrap much nicer.
Before and after small screen caps attached.
Comment #55
ericski CreditAttribution: ericski commentedRTBC +1
Applied latest patch, before and after confirm slogan removed and styles for site name (header) correct
Comment #56
alexpottHas rtl been considered and tested?
Also bartik and system have maintenance and install css and twig files. What should we be doing here?
Comment #57
Anonymous (not verified) CreditAttribution: Anonymous commentedPatch doesnt apply anymore
Comment #58
jiv_e CreditAttribution: jiv_e commentedWorking on the reroll.
Comment #59
jiv_e CreditAttribution: jiv_e commentedHere it goes. Patch is basically the same. Interdiff was empty.
Comment #60
lauriiiLet's activate our lovely test bot!
Comment #61
jiv_e CreditAttribution: jiv_e commentedRTL is not yet working for the title and the step indicator. The step list's right padding is also off. But that's an another issue. I'll fix these and create a new issue.
Comment #62
HaloFX CreditAttribution: HaloFX commentedAgreed, it needs it's own issue. The original issue has been fixed a couple patches back.
The #59 patch applies without issue and the output looks good with Simplytest.me
Comment #63
jiv_e CreditAttribution: jiv_e commentedHere's the patch and the working mobile view. Please review!
Comment #64
LewisNymanAlex also pointed out that we need to remove the slogan from the following files as well:
/core/modules/system/templates/maintenance-page.html.twig
/core/themes/bartik/templates/maintenance-page.html.twig
/core/modules/system/templates/install-page.html.twig
Comment #65
LewisNymanComment #66
jiv_e CreditAttribution: jiv_e commentedSure... I'll add them in. I also added the mentioned related issue.
Comment #67
HaloFX CreditAttribution: HaloFX commentedWhy is there a System install-page.html.twig and a Seven install-page.html.twig? Is there a scenario where Seven wouldn't be used? can an install profile disable Seven during install? or is it just for continuity/fallback?
Comment #68
LewisNyman@HaloFX Yes, in distributions. Also Seven requires special mark up in the design and as a standard we don't enforce the same mark up on every theme
Comment #69
jiv_e CreditAttribution: jiv_e commentedThis is getting quite complex. When I stripped out some markup I needed to refactor the CSS also. There's already a lot of going on.
Some pointers:
I tried to test all the things I could think of.
Comment #71
dinarcon CreditAttribution: dinarcon commentedThis issue is related to the default install and update pages in a drupal 8 core installation, not in the context of a distribution. As though, we could assume that Seven will be used as the admin theme. @alexpott, in that case I think there should not be any change required to bartik's and system's files as asked in https://drupal.org/node/2230997#comment-8870607
IMHO and as mentioned a couple of times, the original issue has already been fixed. @jiv_e's patch at https://drupal.org/node/2230997#comment-8880875 works. I include a new patch that updates a CSS rule for consistency with other rules in the file.
I have updated the issue summary. Please let me know if I missed something.
Comment #72
ericski CreditAttribution: ericski commentedTested patch from #71
Applies clean and works with both LTR and RTL
Comment #73
alexpottCan be we add the missing
/* LTR */
comment to the correspond CSS above.Missing
/* LTR */
commentComment #74
LewisNymanThanks Alex, I found a few more lines in that file that were missing LTR comments.
I also changed the step indicator RTL value match the LTR value.
Comment #75
ericski CreditAttribution: ericski commentedApplied latest patch (#73) against current HEAD.
Still applies cleanly, appropriate LTR comments present, step margin difference so small it's hard to capture in a screenshot, as such no updated screenshots included, previous set still basically the same.
Comment #78
penyaskitoIt was RTBC per #75.
Comment #79
alexpottCommitted 8b9d600 and pushed to 8.x. Thanks!
Removed some blank lines added by patch on commit.