From c3e52766c6ea3b7d7f2f170219c8820fa8641354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kry=C5=A1p=C3=ADn?= Date: Thu, 28 Nov 2024 13:52:41 +0100 Subject: [PATCH 1/4] Feat(web): Allow Full Width Demo --- apps/demo/partials/web/layout/default.hbs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/demo/partials/web/layout/default.hbs b/apps/demo/partials/web/layout/default.hbs index 27b9ff1bcf..2495009442 100644 --- a/apps/demo/partials/web/layout/default.hbs +++ b/apps/demo/partials/web/layout/default.hbs @@ -4,11 +4,17 @@ {{> cover}}
-
+ + {{#unless isFullWidth}} +
+ {{/unless}} {{> @partial-block}} -
+ {{#unless isFullWidth}} +
+ {{/unless}} +
{{> footer}} From e67cd6c96d7fd2989cc79a77558a73ff01e856d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kry=C5=A1p=C3=ADn?= Date: Thu, 28 Nov 2024 13:53:04 +0100 Subject: [PATCH 2/4] Feat(web): Introduce UNSTABLE Header --- .../scss/components/UNSTABLE_Header/README.md | 500 ++++++++++++++++++ .../UNSTABLE_Header/_UNSTABLE_Header.scss | 23 + .../components/UNSTABLE_Header/_theme.scss | 9 + .../components/UNSTABLE_Header/_tools.scss | 59 +++ .../components/UNSTABLE_Header/index.html | 218 ++++++++ .../components/UNSTABLE_Header/index.scss | 2 + packages/web/src/scss/components/index.scss | 1 + 7 files changed, 812 insertions(+) create mode 100644 packages/web/src/scss/components/UNSTABLE_Header/README.md create mode 100644 packages/web/src/scss/components/UNSTABLE_Header/_UNSTABLE_Header.scss create mode 100644 packages/web/src/scss/components/UNSTABLE_Header/_theme.scss create mode 100644 packages/web/src/scss/components/UNSTABLE_Header/_tools.scss create mode 100644 packages/web/src/scss/components/UNSTABLE_Header/index.html create mode 100644 packages/web/src/scss/components/UNSTABLE_Header/index.scss diff --git a/packages/web/src/scss/components/UNSTABLE_Header/README.md b/packages/web/src/scss/components/UNSTABLE_Header/README.md new file mode 100644 index 0000000000..14dd360b28 --- /dev/null +++ b/packages/web/src/scss/components/UNSTABLE_Header/README.md @@ -0,0 +1,500 @@ +# Header + +The Header is a highly variable and customizable component. It comes in several +design variants and provides a handful of building blocks you can use to achieve +your specific design goals. + +The Header is a composition of several subcomponents: + +- [Header](#minimal-header) + - [HeaderMobileActions](#mobile-only-actions) + - [HeaderDesktopActions](#desktop-only-actions) + - [HeaderNav](#navigation) + - [HeaderNavItem](#navigation) + - [HeaderLink](#navigation) +- [HeaderDialog](#header-dialog) + - [HeaderDialogCloseButton](#close-button) + - [HeaderDialogActions](#primary-and-secondary-actions) + - [HeaderDialogNav](#navigation-1) + - [HeaderDialogNavItem](#navigation-1) + - [HeaderDialogLink](#navigation-1) + - [HeaderDialogText](#navigation-1) + +## JavaScript Plugin + +For full functionality, you need to provide Spirit JavaScript, which will handle +toggling of the Header component: + +```html + +``` + +Please consult the [main README][web-readme] for how to include JavaScript +plugins. + +Or, feel free to write the controlling script yourself. + +The HeaderDialog uses the Offcanvas JS Plugin to toggle the dialog. +See [Offcanvas documentation][offcanvas-docs] for more details. + +## Accessibility Guidelines + +- Ensure accessibility by using a `