Skip to content

Commit

Permalink
docs: added link to Contrast Checker tool (#2726)
Browse files Browse the repository at this point in the history
* docs: added link to Contrast Checker tool

* refactor: refactoring after review
  • Loading branch information
PKulkoRaccoonGang authored Oct 26, 2023
1 parent e5a0f7c commit df30702
Showing 1 changed file with 15 additions and 0 deletions.
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

0 comments on commit df30702

Please sign in to comment.