Skip to content

Commit

Permalink
Relax navigation width condition (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
origami-z authored Sep 23, 2024
1 parent 89245d8 commit 9124a6c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-monkeys-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@jpmorganchase/mosaic-site-components': patch
---

Relax navigation width condition for different responsive usage
5 changes: 5 additions & 0 deletions .changeset/perfect-cougars-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@jpmorganchase/mosaic-store': patch
---

Add displayName for `StoreContext`
2 changes: 1 addition & 1 deletion packages/site-components/src/Sidebar/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
{
zIndex: 3,
flexGrow: 0,
width: '300px'
minWidth: '300px'
},
sidebar.container
]),
Expand Down
2 changes: 1 addition & 1 deletion packages/site-components/src/VerticalNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const VerticalNavigation: React.FC<VerticalNavigationProps> = ({
data-testid="vertical-navigation"
as="ul"
gap="var(--salt-size-border)"
style={{ width: 250, listStyle: 'none', paddingLeft: 0 }}
style={{ minWidth: 250, listStyle: 'none', paddingLeft: 0 }}
>
{menu.map(item =>
renderNavigationItem(
Expand Down
1 change: 1 addition & 0 deletions packages/store/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function getDefaultInitialState(): DefaultSiteState {
}

const StoreContext = createContext<typeof store | undefined>(undefined);
StoreContext.displayName = 'StoreContext';
const StoreProvider = StoreContext.Provider;

const storeMiddlewares = stateCreatorFn =>
Expand Down

0 comments on commit 9124a6c

Please sign in to comment.