From eddc68db74aa726827cdbe8a8cbf8361c3b222ef Mon Sep 17 00:00:00 2001 From: Mikael Arvola Date: Sat, 31 Aug 2024 20:18:08 -0500 Subject: [PATCH] WIP collapsed view. --- README.md | 5 +-- samples/index.html | 12 +++++-- src/ilw-section-nav.css | 20 +++++++---- src/ilw-section-nav.js | 25 ++++++-------- src/ilw-section-nav.styles.js | 63 +++++++++++++++++++++++++++++++++-- 5 files changed, 99 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 368fd9f..d05963a 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,9 @@ smaller screens, it collapsed to an expanding widget labeled "In This Section". The following attributes can be used: -- `collapse` - make the menu always collapse regardless of viewport size. -- `open="true"` and `open="false"` are bound to the open/collapsed state of the menu. +- `collapsed="true"` - make the menu always collapse regardless of viewport size. +- `collapsed="false"` - prevent the menu from collapsing. +- `open="true"` and `open="false"` are bound to the open/collapsed state of the menu. - `label` - the text shown when the menu is collapsed. The default value is "Pages In This Section". This is also used as the accessible label of the navigation. diff --git a/samples/index.html b/samples/index.html index 3ad4798..c17963f 100644 --- a/samples/index.html +++ b/samples/index.html @@ -57,7 +57,7 @@