Skip to content

Commit

Permalink
Fix merge conflict issues and clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
broccolinisoup committed Jul 28, 2023
1 parent 4b6487c commit 60c533c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .changeset/early-timers-speak.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ Remove components from draft bundle
+ import {UnderlineNav} from '@primer/react'
```

TODO: Add a note about how to switch to the new version of UnderlineNav (codemode)

....
* Remove TreeView from drafts

Expand Down Expand Up @@ -42,4 +40,4 @@ TODO: Add a note about how to switch to the new version of UnderlineNav (codemod
+ import {SplitPageLayout} from '@primer/react'
```

<!-- Changed components: UnderlineNav, TreeView, SegmentedControl, NavList, SplitPageLayout--!>
<!-- Changed components: UnderlineNav, TreeView, SegmentedControl, NavList, SplitPageLayout -->
2 changes: 1 addition & 1 deletion docs/content/UnderlineNav.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: UnderlineNav
componentId: underline_nav
status: Beta
status: Alpha
a11yReviewed: true
description: Use an underlined nav to allow tab like navigation with overflow behaviour in your UI.
source: https://github.com/primer/react/tree/main/src/UnderlineNav
Expand Down
2 changes: 1 addition & 1 deletion src/UnderlineNav/UnderlineNav.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default {
export const Default: ComponentStory<typeof UnderlineNav> = () => {
const children = ['Code', 'Pull requests', 'Actions', 'Projects', 'Wiki']
return (
<UnderlineNav>
<UnderlineNav aria-label="Repository">
{children.map((child: string, index: number) => (
<UnderlineNavItem key={index} href="#" aria-current={index === 0 ? 'page' : undefined}>
{child}
Expand Down
2 changes: 1 addition & 1 deletion src/UnderlineNav/UnderlineNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const overflowEffect = (
// if we can't fit all the items without their icons, we keep the icons hidden and show the ones that doesn't fit into the list in the overflow menu
iconsVisible = false

/* Below is an accessibiility requirement. Never show only one item in the overflow menu.
/* Below is an accessibility requirement. Never show only one item in the overflow menu.
* If there is only one item left to display in the overflow menu according to the calculation,
* we need to pull another item from the list into the overflow menu.
*/
Expand Down

0 comments on commit 60c533c

Please sign in to comment.