Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BD-46] docs: added link to Contrast Checker tool #2726

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions www/src/components/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ const handlePlaygroundClick = () => {
global.analytics.track('openedx.paragon.docs.menu.playground.visit_playground.clicked');
};

const handleContrastCheckerClick = () => {
global.analytics.track('openedx.paragon.docs.menu.tools.visit_contrast_checker.clicked');
};

MenuComponentListCategory.propTypes = {
children: PropTypes.node.isRequired,
title: PropTypes.string.isRequired,
Expand Down Expand Up @@ -228,6 +232,17 @@ function Menu() {
<li>
<Link to="/tools/component-generator">Component Generator</Link>
</li>
<li>
<Hyperlink
destination="https://webaim.org/resources/contrastchecker"
target="_blank"
externalLinkAlternativeText="Contrast checker page"
externalLinkTitle="Contrast checker"
onClick={handleContrastCheckerClick}
>
Contrast Checker
</Hyperlink>
</li>
</ul>
</Collapsible>
<MenuComponentList>
Expand Down
Loading