Skip to content

Navbar drop-down menu #169

Answered by jmjuanes
kiwioverseas asked this question in Q&A
Jul 15, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Hello!

To be honest the dropdown is one feature that I wanted to add but I did not find a solution that I liked. Maybe now is the time to find one solution for the next release.

My first idea was to create a new element called dropdown to act as a wrapper for placing navigation links, dividers... And for displaying the dropdown when the user moves the mouse over the parent element, create a special with-dropdown modifier for the parent element.

Something like that:

// siimple.config.js
import base from "@siimple/preset-base";

export default {
    ...base,
    styles: {
        ".with-dropdown": {
            position: "relative",
        },
        ".dropdown": {
            display: "none"

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jmjuanes
Comment options

You must be logged in to vote
2 replies
@jmjuanes
Comment options

@kiwioverseas
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants