Skip to content

Commit 421c96d

Browse files
authored
Merge pull request #390 from mongodb/steph/alignment
Fix alignment for SideNavItem and external links
2 parents 7666162 + aee90ab commit 421c96d

File tree

4 files changed

+17
-24
lines changed

4 files changed

+17
-24
lines changed

package-lock.json

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@leafygreen-ui/split-button": "^1.1.2",
5151
"@leafygreen-ui/stepper": "^3.2.13",
5252
"@leafygreen-ui/table": "^12.6.4",
53-
"@leafygreen-ui/tabs": "^12.0.3",
53+
"@leafygreen-ui/tabs": "^13.0.0",
5454
"@leafygreen-ui/text-area": "^9.1.1",
5555
"@leafygreen-ui/text-input": "^13.1.1",
5656
"@leafygreen-ui/toast": "^6.1.26",

src/app/component/[component]/layout.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,7 @@ export default function ComponentLayout({
8484
margin-bottom: ${spacing[800]}px;
8585
`}
8686
inlineChildren={
87-
<div
88-
className={css`
89-
display: flex;
90-
gap: ${spacing[200]}px;
91-
border-bottom: 1px solid ${color[theme].border.secondary.default};
92-
flex: 1;
93-
justify-content: flex-end;
94-
height: 100%;
95-
`}
96-
>
87+
<>
9788
{externalLinks.map(
9889
({ 'aria-label': ariaLabel, href, icon }, index) => (
9990
<IconButton
@@ -108,7 +99,7 @@ export default function ComponentLayout({
10899
</IconButton>
109100
),
110101
)}
111-
</div>
102+
</>
112103
}
113104
>
114105
<Tab

src/components/global/SideNavigation/SideNavItem.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ export function SideNavItem({
8787
className={css`
8888
margin: 0;
8989
padding: ${spacing[200]}px ${spacing[400]}px;
90+
display: flex;
91+
align-items: center;
9092
`}
9193
>
9294
{children}

0 commit comments

Comments
 (0)