Skip to content

Commit 00e4fd1

Browse files
francineluccallastflowers
authored andcommitted
revert changes
1 parent 1cada4c commit 00e4fd1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/react/src/UnderlineNav/UnderlineNav.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type {ChildWidthArray, ResponsiveProps, ChildSize} from './types'
77
import VisuallyHidden from '../_VisuallyHidden'
88
import {moreBtnStyles, dividerStyles, menuItemStyles, baseMenuMinWidth} from './styles'
99
import {UnderlineItemList, UnderlineWrapper, LoadingCounter, GAP} from '../internal/components/UnderlineTabbedInterface'
10+
import styled from 'styled-components'
1011
import {Button} from '../Button'
1112
import {TriangleDownIcon} from '@primer/octicons-react'
1213
import {useOnEscapePress} from '../hooks/useOnEscapePress'
@@ -40,6 +41,12 @@ export const MORE_BTN_WIDTH = 86
4041
// The height is needed to make sure we don't have a layout shift when the more button is the only item in the nav.
4142
const MORE_BTN_HEIGHT = 45
4243

44+
export const MoreMenuListItem = styled.li`
45+
display: flex;
46+
align-items: center;
47+
height: ${MORE_BTN_HEIGHT}px;
48+
`
49+
4350
const overflowEffect = (
4451
navWidth: number,
4552
moreMenuWidth: number,
@@ -417,7 +424,7 @@ export const UnderlineNav = forwardRef(
417424
)
418425
})}
419426
</ActionList>
420-
</li>
427+
</MoreMenuListItem>
421428
)}
422429
</UnderlineItemList>
423430
</UnderlineWrapper>

0 commit comments

Comments
 (0)