Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

Add Metismenu to Cassiopeia, rework Cassiopeia's HTML structure, use relative CSS sizes #46

Merged

Conversation

drmenzelit
Copy link
Collaborator

Pull Request for Issues #33 and #9 .

Summary of Changes

Structure

Remove banner from header
Change position of nav and search
Several css changes to adapt to the new design

Menu

This pull resuest (PR) adds a new layout for an accessible frontend menu with dropdowns using metismenujs to the Cassiopeia template of Joomla 4.

Metismenujs is a vanilla js variant of metismenu, i.e. it doesn't depend on jquery.

It is acessible and responsive and provides pull-downs.

We use it already in the backend in the Atum template, so using it in Cassiopeia, too, doesn't cause a new external dependency.

Testing Instructions

Apply the changes in this PR to a clean, current 4.0-dev branch and then run npm ci.

Expected result

Actual result

Documentation Changes Required

drmenzelit and others added 30 commits August 10, 2020 16:40
Added an alternative layout for mod_menu including (loading) metismenu, added a new scss file for styling the menu
Metismenu frontend - wrapping UL attributes in an array
🗑️ removal obsolete reference to deleted file
The menu class suffix is a menu class on J4, not a suffix.
- added an "if parent" in heading and separator to add arrow class
- reverted $class[] because it was not working
- minor style changes
@richard67 richard67 changed the title Cassiopeia/4 0 dev frontend metismenu and html structure Add metismenu to Cassiopeia, rework Cassiopeia's HTML structure, use relative CSS sizes Aug 28, 2020
@richard67 richard67 changed the title Add metismenu to Cassiopeia, rework Cassiopeia's HTML structure, use relative CSS sizes Add Metismenu to Cassiopeia, rework Cassiopeia's HTML structure, use relative CSS sizes Aug 28, 2020
drmenzelit and others added 2 commits August 29, 2020 14:50
… and clean up sub-layouts (#45)

* Separate link and button for dropdown items

- Move dropdown handling to main layout override
- Remove obsolete sub-layout overrides

* Use language string for screenreader text

* Add missing language string for frontend

* Adapt metismenu scss to changed dropdown
@richard67 richard67 changed the base branch from 4.0-dev to development August 30, 2020 10:52
@richard67 richard67 marked this pull request as ready for review August 30, 2020 10:57
@richard67 richard67 merged commit 6b6dbba into development Aug 30, 2020
@richard67
Copy link
Member

Am merging into the development branch for now. For further improvements please make pull requests against the development branch.

@richard67 richard67 deleted the cassiopeia/4-0-dev-frontend-metismenu-and-html-structure branch August 30, 2020 11:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants