forked from ethereum/ethereum-org-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(Breadcrumbs): update style usage
- Loading branch information
1 parent
34f3fec
commit 61be715
Showing
10 changed files
with
58 additions
and
42 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,45 @@ | ||
import { createMultiStyleConfigHelpers } from "@chakra-ui/react" | ||
import { breadcrumbAnatomy } from "@chakra-ui/anatomy" | ||
import { breadcrumbDefaultTheme, defineMergeStyles } from "./components.utils" | ||
|
||
const { defineMultiStyleConfig } = createMultiStyleConfigHelpers( | ||
breadcrumbAnatomy.keys | ||
) | ||
|
||
const baseStyle = defineMergeStyles(breadcrumbDefaultTheme.baseStyle, { | ||
list: { | ||
m: 0, | ||
lineHeight: "base", | ||
flexWrap: "wrap", | ||
}, | ||
item: { | ||
color: "body.medium", | ||
letterSpacing: "wider", | ||
m: 0, | ||
}, | ||
link: { | ||
fontWeight: "normal", | ||
_hover: { | ||
color: "primary.base", | ||
textDecor: "none", | ||
}, | ||
_active: { | ||
color: "primary.base", | ||
}, | ||
/* | ||
* `&[aria-current="page"]` | ||
* Redundancy to ensure styling on the active | ||
* link is applied. | ||
*/ | ||
_activeLink: { | ||
color: "primary.base", | ||
}, | ||
}, | ||
separator: { | ||
mx: "2.5", | ||
}, | ||
}) | ||
|
||
export const Breadcrumb = defineMultiStyleConfig({ | ||
baseStyle, | ||
}) |
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
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
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