From 631237669c2b38bea6eab1a7e25c2bd397d756be Mon Sep 17 00:00:00 2001
From: GCHQ-Developer-530
<111882034+GCHQ-Developer-530@users.noreply.github.com>
Date: Thu, 4 Jan 2024 14:09:54 +0000
Subject: [PATCH] fix(react): update sideNavExpanded and topNavResized to work
as other events
Update sideNavExpanded and topNavResized to work as other events and appear in docs
---
.../stories/ic-side-navigation.stories.mdx | 82 +++++++++++++++++++
.../src/stories/ic-top-navigation.stories.mdx | 23 ++++++
2 files changed, 105 insertions(+)
diff --git a/packages/react/src/stories/ic-side-navigation.stories.mdx b/packages/react/src/stories/ic-side-navigation.stories.mdx
index 25680b7958..f8bd79a4de 100644
--- a/packages/react/src/stories/ic-side-navigation.stories.mdx
+++ b/packages/react/src/stories/ic-side-navigation.stories.mdx
@@ -509,6 +509,88 @@ export const Controlled = () => {
+### Side nav expanded event
+
+
+
### React Router
export const HomePage = () => (
diff --git a/packages/react/src/stories/ic-top-navigation.stories.mdx b/packages/react/src/stories/ic-top-navigation.stories.mdx
index 391d6d0948..d110d21262 100644
--- a/packages/react/src/stories/ic-top-navigation.stories.mdx
+++ b/packages/react/src/stories/ic-top-navigation.stories.mdx
@@ -337,6 +337,29 @@ export const Controlled = () => {
);
};
+### Top nav resized event
+
+
+
### Theming