Olivero: use multi-class array for adding multiple classes templates
We are adding multiple classes by single array.
<div{{ content_attributes.addClass('content', 'container-inline') }}> We should add multiple classes by multi-class array.
To make it consistent we can use multi-class array.
Remaining tasks
Update mutli-class array in these files:
search-result.html.twig
node.html.twig
book-tree.html.twig
menu--primary-menu.html.twig
menu--secondary-menu.html.twig
menu-local-task.html.twig
menu.html.twig
User interface changes
None
| Comment | File | Size | Author |
|---|
Issue fork drupal-3336323
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3336323-olivero-use-multi-class
changes, plain diff MR !3471
Comments
Comment #2
gauravvvv commentedAdded a patch with multi array class. Please review
Comment #3
markconroy commentedLooks good to me, applies cleanly. Tested against D10-dev.
Comment #4
bnjmnmLets update the issue summary as to why there is interest in making this change. If it's for consistency, the scope should probably be expanded to other templates using multiple args.
Comment #5
gauravvvv commentedUpdated IS.
Comment #7
gauravvvv commentedAddressed #4 and created MR. Please review
Comment #8
smustgrave commentedMR 3471 seems to have some failures
May be the templates that are going through loops..
Comment #11
quietone commentedThe Olivero theme was approved for removal in #3590816: [policy, no patch] Deprecate Olivero and move to contrib.
This is Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.
The deprecation work is in #3595082: [meta] Tasks to deprecate the Olivero theme and the removal work in #3595085: [meta] Tasks to remove the Olivero theme.