-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
927 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
'@primer/react-brand': minor | ||
--- | ||
|
||
Updates to `SubNav` component | ||
|
||
- New anchor-based navigation pattern available: | ||
|
||
Use `variant="anchor"` on `SubNav.SubMenu` to apply anchor navigation as an alternative to the default dropdown-based submenu. | ||
|
||
```jsx | ||
<SubNav> | ||
<SubNav.Heading href="#">Heading</SubNav.Heading> | ||
<SubNav.Link href="#" aria-current="page"> | ||
Link with anchor navigation | ||
<SubNav.SubMenu variant="anchor"> | ||
<SubNav.Link href="#">Anchor link one</SubNav.Link> | ||
<SubNav.Link href="#">Anchor link two</SubNav.Link> | ||
<SubNav.Link href="#">Anchor link three</SubNav.Link> | ||
<SubNav.Link href="#">Anchor link four</SubNav.Link> | ||
</SubNav.SubMenu> | ||
</SubNav.Link> | ||
<SubNav.Link href="#">Link</SubNav.Link> | ||
<SubNav.Link href="#">Link</SubNav.Link> | ||
</SubNav> | ||
``` | ||
|
||
- Overlay now closes when user clicks outside of it | ||
|
||
- Dropdown submenus now appear with white and black background and foreground colors respectively, irrespective of color mode. | ||
|
||
- Various other visual updates to improve brand-alignment. These include adjustments to text size, weight, color and iconography. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.