-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): fixing the breadcrumb issue (#6605)
Ofc I had to also change the icon to be a mini Aztec logo. And btw minified the svg. I could go on but I have to stop with these nittiest of nits
- Loading branch information
1 parent
4b45438
commit 2624c26
Showing
5 changed files
with
35 additions
and
17 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
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,26 @@ | ||
import React from "react"; | ||
import Link from "@docusaurus/Link"; | ||
import useBaseUrl from "@docusaurus/useBaseUrl"; | ||
import { translate } from "@docusaurus/Translate"; | ||
import IconHome from "@theme/Icon/Home"; | ||
import styles from "./styles.module.css"; | ||
import AztecLogo from "@site/static/img/Aztec_icon_minified.svg"; | ||
|
||
export default function HomeBreadcrumbItem() { | ||
const homeHref = useBaseUrl("/"); | ||
return ( | ||
<li className="breadcrumbs__item" itemProp="itemListElement"> | ||
<Link | ||
aria-label={translate({ | ||
id: "theme.docs.breadcrumbs.home", | ||
message: "Home page", | ||
description: "The ARIA label for the home page in the breadcrumbs", | ||
})} | ||
className="breadcrumbs__link" | ||
href={homeHref} | ||
> | ||
<AztecLogo className={styles.breadcrumbHomeIcon} /> | ||
</Link> | ||
</li> | ||
); | ||
} |
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,7 @@ | ||
.breadcrumbHomeIcon { | ||
position: relative; | ||
top: 1px; | ||
vertical-align: top; | ||
height: 1.1rem; | ||
width: 1.1rem; | ||
} |
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.