Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
help.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Jan 2015 at 12:15 UTC
Updated:
11 May 2015 at 14:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lewisnymanUploaded the css file so it can reviewed with Dreditor
Comment #2
lewisnymanComment #3
kyuubi commentedHi LewisNyman,
I think the more link should be viewed as a sub-component of help.
Should be changed to
.help__more-linkto avoid repeating the component context "help" unnecessarily.Attached is patch with this suggestion.
Let me know what you think.
Thanks,
Comment #4
kyuubi commentedComment #5
kyuubi commentedUps,
Uploaded wrong patch in the previous comment.
Here goes the correct one.
Cheers,
Comment #6
lewisnyman@kyuubi I think it's a good idea to keep the more-link class that is in system.theme.css as it's used elsewhere, but it means that there is some CSS that is
In Seven's CSS
In system.theme.css
We can delete this CSS and just use the more-link class.
Then we just need to figure out what to do with the rest of the CSS.
This is basically just an icon, right? We can create a class called 'icon-help' that does this and add it to the link.
I'm unsure what to do with this CSS yet, why are we reducing the font-size? I'll have a look
Comment #7
kyuubi commentedHi,
Here is a patch for what we discussed:
I am attaching screens for before and after of the help screen (where the .help p and .help font-size and margin rules have an effect) we well as screens for the more link replaced with generic icon class and more-link class.
Comment #8
lewisnymanThis is looking great! I don't see the logic on making the font size smaller in just this one page... I tried to track down where this code was added and it was added in: #484860: Initial D7UX admin theme.
All we need to do it remove the reference to help.css in seven.libraries.yml
Comment #9
kyuubi commentedHi,
Here is the updated patch with the reference to help.css removed from seven.libraries.yml
Comment #10
lewisnymanWoo yeah :)
Comment #11
idebr commentedDrupal coding standards use two spaces for indentation instead of four. Also a multiline array assignment should end in a comma, eg.
array('icon-help'),instead ofarray('icon-help')This line should end in a comma as well for coding standards.
This removes the styling for every help text in Seven. I think this is out of scope for a 'Rewrite CSS to coding standards' type of issue?
Comment #12
kyuubi commentedHi idebr,
Thanks for this review!
Comment #13
idebr commented@kyuubi Re #3: There is already a separate issue to remove small font sizes, so let's leave that part out here: #2045473: Improve visibility of Seven's smallest font elements
Comment #14
kyuubi commentedHi idebr,
Ok will leave that one out and will put a patch with the rest later tonight.
Thanks!
Comment #15
lewisnyman@idebr Ok, as it's a design change, let's leave that change out of this issue. Let's create a followup issue to remove it, because I don't think #2045473: Improve visibility of Seven's smallest font elements is going to get committed anytime soon.
Comment #16
kyuubi commentedHi guys,
Here is the patch with that we discussed.
Also attached interdiff.
Comment #17
lewisnymanGreat thanks!
Comment #18
alexpottRemoving the
more-help-linkand replacing it withicon-helpneeds a CR.Comment #19
kyuubi commentedHi Alex,
The help-more-link was replaced with the generic more-link
The 'help-more-link a' was replaced with 'icon-help'.
Do you mean the latter?
Thanks,
Comment #20
lewisnyman@alex are you sure that we need a change record for changing markup? We've changed a lot of markup in issues before without a CR.
Comment #21
alexpott@LewisNyman we're completely removing a class - this needs a CR as some module author might be relying on the this functionality. And I've been asking for CRs on issues that are removing classes before.
Comment #22
kyuubi commented@alexpott Added the CR:
https://www.drupal.org/node/2462579
Let me know if everything is in order.
Comment #23
andypostComment #24
lewisnyman@alexpott Ah ok got it, I'll bear that in mind. I suppose that includes removing/changing classes in themes.
Comment #25
alexpottThe CR needs to mention that more-link replaces more-help-link. And that the icon-help is used on text inside the container.
Comment #26
andypostIt totally makes sense to have CRs for removed core classes, and it would be great to have them indexed in one CR to allow contrib themes to follow core changes. Especially for themes that used for administration
Comment #27
kyuubi commentedHi,
I updated the CR to reflect the changes to the more-link as well.
Also change title to be more generic in order to incorporate other eventual changes to this component.
Comment #28
lewisnymanHi, I updated the CR slightly to make the title more clear. I think that we're unlikely to change the mark up anymore than we have here, so we don't have to increase the scope of the CR.
Comment #30
Karmen commentedComment #31
Karmen commentedUpload the reroll.
I'm not very sure about put 'reroll' in the syntax of the patch. But, wait your answer.
Thank you!
Comment #32
lewisnymanGreat thanks.
We can remove this CSS, because this was removed previously in #2045473: Improve visibility of Seven's smallest font elements
Comment #33
Karmen commentedHere is the new patch!
Comment #34
lewisnyman@Karmen Great thanks, you don't need to put reroll in the patch name, but when you upload a new patch it can help reviewing to upload an interdiff. See: https://www.drupal.org/documentation/git/interdiff
Looks like we need some screenshots of the affected pages to show we haven't introduced any regressions
Comment #35
lewisnymanComment #36
lewisnymanThanks, here are the screenshots:
Before:

After:

Comment #37
lewisnymanRTBC
Comment #40
lewisnymanOk back to RTBC. Thanks!
Comment #41
alexpottThis is a CSS only change permitted in beta. Committed 90e7bdd and pushed to 8.0.x. Thanks!