Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
theme system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
3 Oct 2014 at 12:59 UTC
Updated:
20 Feb 2015 at 17:04 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #1
lauriiiComment #3
mortendk commentedComment #4
davidhernandezPlease double-check if any removed classes are being used in javascript. It is best to test the affected template using Stark to make sure nothing is broken.
Comment #5
kallehauge commentedGoing to work
Comment #6
kallehauge commentedI think I got it all now. I have renamed all the classes used by JavaScript to begin with "js-..." and changed all the places where any CSS/JS reference the classes.
The two templates inside Classy and the toolbar module are now identical again. If we removed the "visually-hidden" classes, then the toolbar won't look as intended when Stark is enabled. - I also left in the "clearfix" classes for good measures since I don't know if they're essential for cross-browser support. I've only tested it in Chrome.
Look at the attached image to see an example of how it "breaks" without the necessary visibility classes that was previously removed.
Comment #7
mortendk commentedlooks like the vertical orientation for the toolbar somehow got removed, setting it back to needs work
Comment #8
DickJohnson commentedRe-assigned. Trying to get a patch online in 24 hours.
Comment #9
DickJohnson commentedComment #12
saki007sterComment #13
saki007sterCopied the template from the toolbar module to the classy theme and took care of the classes which should remain in the file.
Comment #14
saki007sterComment #15
saki007sterComment #16
mortendk commentedcreate a followup issue to fix the lacking of js prefix for toolbar's classes #2349767: Copy toolbar templates to Classy
Comment #17
mortendk commentedLooks good
classes should be modified in the followup issue its not the role of this patch to fix those issues
Comment #18
alexpottRemoving the toolbar-tray-name breaks accessibility - see
core/modules/toolbar/js/views/ToolbarAuralView.jsComment #19
mortendk commentedooh my yes we do need indeed to prefix these classes, maybe thats even in this issue
Comment #20
mortendk commentedadded backin the toolbar tray-name updated the followup issue on proper css classnaming when depending on js
Comment #21
davidhernandezSeems like we need to keep most of those classes for functionality. Nice to get rid of the clearfix though.
Comment #24
davidhernandezThe failed test was broken HEAD. We're back in action now.
Comment #25
webchickCommitted and pushed to 8.0.x. Thanks!
Comment #27
alexpottI pushed on @webchick's behalf :)
Comment #28
webchickWhew! Thanks. :)