gridsome.org icon indicating copy to clipboard operation
gridsome.org copied to clipboard

feat: add docs menu collapse functionality

Open Dana94 opened this issue 4 years ago • 6 comments

I created a new component called DocsMenu to store each collapsible section of the menu.

Arrow svg from : https://www.freeicons.io/material-icons-navigation-2/arrow-back-ios-icon-16675

closes #514

Dana94 avatar Oct 03 '20 21:10 Dana94

Love this! We should maybe try to store in local storage what sections that have been opened and closed? So when you refresh it stays the same.

tomtev avatar Oct 05 '20 10:10 tomtev

Sure, I can do this. :+1:

Dana94 avatar Oct 05 '20 14:10 Dana94

It seems to work very well! I just noticed that the arrows were a little hard to see in dark mode.

hjvedvik avatar Oct 29 '20 23:10 hjvedvik

Right, I'll fix that!

Dana94 avatar Oct 30 '20 12:10 Dana94

I don't see the icon for changing to dark/mocha/light mode in my branch so I checked out Master and it wasn't there either. 😕

Dana94 avatar Oct 30 '20 13:10 Dana94

Not to bring this up a year later, but can you use the CSS variable --body-color to fill the svg?

TerabyteTiger avatar Sep 22 '21 19:09 TerabyteTiger