Page heading
-Page contents
-From 28bc53f4b67a64b400ff67ddd52eaa43a30b8d34 Mon Sep 17 00:00:00 2001 From: Tilly Woodfield <22456167+tillywoodfield@users.noreply.github.com> Date: Tue, 22 Oct 2024 10:58:05 +0300 Subject: [PATCH 01/11] docs: add links to IATI website pages for header general nav --- src/scss/layout/header/header.stories.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/scss/layout/header/header.stories.ts b/src/scss/layout/header/header.stories.ts index 094706b..a2d1ea8 100644 --- a/src/scss/layout/header/header.stories.ts +++ b/src/scss/layout/header/header.stories.ts @@ -11,8 +11,6 @@ import { MobileNav } from "../../components/mobile-nav/mobile-nav.stories"; import { Default as TitleBar } from "../../components/title-bar/title-bar.stories"; import { ToolNav } from "../../components/tool-nav/tool-nav.stories"; -const generalNavItems = ["IATI home", "News", "Events", "Contacts"]; - const meta: Meta = { title: "Layout/Header", parameters: { @@ -43,7 +41,14 @@ export const WithHorizontalNav: Story = { ${logo} From db73de2a77a957c5b2cbaa8d732f13ce57857d09 Mon Sep 17 00:00:00 2001 From: Tilly Woodfield <22456167+tillywoodfield@users.noreply.github.com> Date: Tue, 22 Oct 2024 15:27:56 +0300 Subject: [PATCH 02/11] docs: update capitalisation on nav items --- src/scss/components/mobile-nav/mobile-nav.stories.ts | 2 +- src/scss/components/piped-list/piped-list.stories.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scss/components/mobile-nav/mobile-nav.stories.ts b/src/scss/components/mobile-nav/mobile-nav.stories.ts index 74146d6..4629578 100644 --- a/src/scss/components/mobile-nav/mobile-nav.stories.ts +++ b/src/scss/components/mobile-nav/mobile-nav.stories.ts @@ -9,7 +9,7 @@ const toolItems = [ "Data Dashboards", "Custom Data Download", ]; -const generalItems = ["IATI home", "News", "Events", "Contact", "Help docs"]; +const generalItems = ["IATI Home", "News", "Events", "Contact", "Help Docs"]; const meta: Meta = { title: "Components/Mobile Nav", diff --git a/src/scss/components/piped-list/piped-list.stories.ts b/src/scss/components/piped-list/piped-list.stories.ts index 7c3308d..3c3c5eb 100644 --- a/src/scss/components/piped-list/piped-list.stories.ts +++ b/src/scss/components/piped-list/piped-list.stories.ts @@ -2,7 +2,7 @@ import { html } from "lit"; import type { Meta, StoryObj } from "@storybook/web-components"; -const items = ["IATI home", "News", "Events", "Contacts"]; +const items = ["IATI Home", "News", "Events", "Contacts"]; const meta: Meta = { title: "Components/Piped List", From 419374d16aef3b41a00816eec155938b27103152 Mon Sep 17 00:00:00 2001 From: Tilly Woodfield <22456167+tillywoodfield@users.noreply.github.com> Date: Tue, 22 Oct 2024 15:28:47 +0300 Subject: [PATCH 03/11] docs: add links to social icons --- src/scss/layout/footer/footer.stories.ts | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/scss/layout/footer/footer.stories.ts b/src/scss/layout/footer/footer.stories.ts index 26f14cc..1518366 100644 --- a/src/scss/layout/footer/footer.stories.ts +++ b/src/scss/layout/footer/footer.stories.ts @@ -58,9 +58,21 @@ export const Footer: Story = { ${CountrySwitcher.render?.call({ ...args })}
From 1ece36393a05efbc5ddc61dced96f077e91c1279 Mon Sep 17 00:00:00 2001 From: Tilly Woodfield <22456167+tillywoodfield@users.noreply.github.com> Date: Tue, 22 Oct 2024 16:14:58 +0300 Subject: [PATCH 04/11] docs: fix mobile nav story --- src/scss/components/header-button/_header-button.scss | 9 +++++++++ .../components/header-button/header-button.stories.ts | 2 +- src/scss/components/mobile-nav/mobile-nav.stories.ts | 11 ++++++++++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/scss/components/header-button/_header-button.scss b/src/scss/components/header-button/_header-button.scss index 3696821..45a85f0 100644 --- a/src/scss/components/header-button/_header-button.scss +++ b/src/scss/components/header-button/_header-button.scss @@ -15,9 +15,18 @@ transition: all 0.2s ease-in-out; text-decoration: none; line-height: 1.1; + &:hover { background-color: $color-blue-30; } + + &--hide-mobile { + display: none; + + @media (min-width: $mobile_nav_breakpoint) { + display: inline-flex; + } + } } .header-button__icon { diff --git a/src/scss/components/header-button/header-button.stories.ts b/src/scss/components/header-button/header-button.stories.ts index df1b34b..1a872b5 100644 --- a/src/scss/components/header-button/header-button.stories.ts +++ b/src/scss/components/header-button/header-button.stories.ts @@ -18,7 +18,7 @@ type Story = StoryObj; export const Info: Story = { render: () => html` - + diff --git a/src/scss/components/mobile-nav/mobile-nav.stories.ts b/src/scss/components/mobile-nav/mobile-nav.stories.ts index 4629578..4d8af8b 100644 --- a/src/scss/components/mobile-nav/mobile-nav.stories.ts +++ b/src/scss/components/mobile-nav/mobile-nav.stories.ts @@ -15,16 +15,25 @@ const meta: Meta = { title: "Components/Mobile Nav", argTypes: { open: { - defaultValue: true, control: { type: "boolean" }, }, }, + parameters: { + docs: { + story: { + height: "600px", + }, + }, + }, }; export default meta; type Story = StoryObj; export const MobileNav: Story = { + args: { + open: true, + }, render: (args) => html`