Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Part of #1995272: [Meta] Refactor module CSS files inline with our CSS standards
Related Issues
#1912516: Markup for menus (Dream Markup)
#1899236: Add new Splitbutton render element to eventually replace Dropbutton (uses class="menu")
Comment | File | Size | Author |
---|---|---|---|
#1 | component-style-menu-class-1.patch | 848 bytes | echoz |
component-style-menu-class.patch | 2.38 KB | echoz |
Comments
Comment #1
echoz CreditAttribution: echoz commentedRe-roll.
Beginning the process, so far just the classes renamed in the css file. Todo: locate where html is generated and edit/add new class names.
Comment #1.0
echoz CreditAttribution: echoz commentedMoving text to #1
Comment #2
echoz CreditAttribution: echoz commentedComment #2.0
echoz CreditAttribution: echoz commentedUpdated issue summary.
Comment #3
echoz CreditAttribution: echoz commentedtagging
Comment #4
ry5n CreditAttribution: ry5n commentedWe’ll need to think about what types of menus we have. There are a number of different patterns in core:
- Toolbar navigation (custom)
- Generic top navigation (responsive?)
- Generic/sidebar navigation (multi-level)
- Nav with icons + captions (e.g. admin/ and admin/config)
- Dropdown menus (e.g. autocomplete, dropbutton)
These may or may not be separate components, for example (speculative):
- .toolbar
- .main-nav
- .nav
- .nav--caption (?)
- .menu (application-style menu, often dropdown/popup)
We may or may not want to go with a list-less nav (see #1912516: Markup for menus).
Comment #4.0
ry5n CreditAttribution: ry5n commentedAdded related issues
Comment #5
JohnAlbinI've gone through various styleguides and cataloged all the different names. Not much consensus. https://docs.google.com/spreadsheet/ccc?key=0AvR7gnIrX0ckdDgzNDI0blZVSnF...
Comment #6
JohnAlbinI want to be clear that we are just trying to refactor the nested menus that usually appear in a sidebar. There are other types of menus in drupal, but those are different components.
Comment #6.0
JohnAlbinAdded note that #1912516: Markup for menus belongs to Dream Markup
Comment #7
mitokens CreditAttribution: mitokens as a volunteer commented