Skip to content

Commit 2d35f07

Browse files
authored
Merge pull request #259 from fedspendingtransparency/fix/DEV14466
DEV-14466 fix tooltip wrapper on download button
2 parents d697496 + 8e9f351 commit 2d35f07

32 files changed

Lines changed: 33 additions & 34 deletions

components/DownloadIconButton.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable jsx-a11y/no-interactive-element-to-noninteractive-role */
12
/**
23
* DownloadIconButton.jsx
34
* Created by Lizzie Salita 7/9/20
@@ -47,14 +48,13 @@ const DownloadIconButton = ({
4748
tooltipComponent={tooltipComponent}>
4849
<button
4950
type="button"
51+
role="presentation"
5052
className="usda-button"
5153
title={buttonText}
52-
aria-label={buttonText}
5354
disabled={downloadInFlight || !isEnabled}
5455
onClick={startDownload}
5556
style={{ backgroundColor }}
56-
tabIndex={!isEnabled ? -1 : 0}
57-
aria-hidden={!isEnabled}>
57+
tabIndex={!isEnabled ? -1 : 0}>
5858
<FontAwesomeIcon icon={icon} spin={downloadInFlight} color="#dfe1e2" />
5959
<span style={{ color: '#dfe1e2' }}>{buttonText}</span>
6060
</button>
@@ -82,4 +82,4 @@ const DownloadIconButton = ({
8282

8383
DownloadIconButton.displayName = 'Download Icon Button';
8484
DownloadIconButton.propTypes = propTypes;
85-
export default DownloadIconButton;
85+
export default DownloadIconButton;

components/infoTooltip/TooltipWrapper.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable jsx-a11y/no-noninteractive-tabindex */
12
/**
23
* Tooltip.jsx
34
* Created by Lizzie Salita 3/8/19
@@ -307,9 +308,8 @@ const TooltipWrapper = ({
307308
tooltipContainer.current = div;
308309
}}>
309310
<div
310-
role="button"
311+
role="presentation"
311312
tabIndex="0"
312-
aria-label="Tooltip Hover Wrapper"
313313
className="tooltip__hover-wrapper"
314314
onBlur={closeTooltip}
315315
onFocus={showTooltipFunc}

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/148.561ea147.iframe.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/148.7d5a8b1c.iframe.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/iframe.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,8 @@
623623

624624
import './mocker-runtime-injected.js';
625625

626-
import './runtime~main.1a60110c.iframe.bundle.js';
626+
import './runtime~main.f016f9f4.iframe.bundle.js';
627627

628628
import './6094.566847d9.iframe.bundle.js';
629629

630-
import './main.9bb1fb29.iframe.bundle.js';</script></body></html>
630+
import './main.1c40801a.iframe.bundle.js';</script></body></html>
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"generatedAt":1769798171433,"userSince":1751563499910,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@babel/plugin-transform-optional-chaining":"7.27.1","@chromatic-com/storybook":"4.1.1","@testing-library/jest-dom":"6.8.0","@testing-library/react":"14.0.0","eslint-plugin-jasmine":"2.10.1","jest":"28.1.3","jest-cli":"28.1.3"},"hasRouterPackage":false,"packageManager":{"type":"npm","agent":"npm","nodeLinker":"node_modules"},"typescriptOptions":{"reactDocgen":"react-docgen-typescript"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","portableStoriesFileCount":2,"applicationFileCount":9,"storybookVersion":"9.1.3","language":"typescript","storybookPackages":{"@storybook/addon-a11y":{"version":"9.1.3"},"@storybook/react-webpack5":{"version":"9.1.3"},"storybook":{"version":"9.1.3"}},"addons":{"@storybook/addon-links":{"version":"9.1.3"},"@storybook/addon-webpack5-compiler-babel":{"version":"3.0.6"},"@chromatic-com/storybook":{"version":"4.1.1"},"@storybook/addon-docs":{"version":"9.1.3"},"@storybook/addon-styling-webpack":{"version":"2.0.0"}}}
1+
{"generatedAt":1771456697493,"userSince":1747848640087,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@babel/plugin-transform-optional-chaining":"7.27.1","@chromatic-com/storybook":"4.1.1","@testing-library/jest-dom":"6.8.0","@testing-library/react":"14.0.0","eslint-plugin-jasmine":"2.10.1","jest":"28.1.3","jest-cli":"28.1.3"},"hasRouterPackage":false,"packageManager":{"type":"npm","agent":"npm","nodeLinker":"node_modules"},"typescriptOptions":{"reactDocgen":"react-docgen-typescript"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","portableStoriesFileCount":5,"applicationFileCount":9,"storybookVersion":"9.1.3","language":"typescript","storybookPackages":{"@storybook/addon-a11y":{"version":"9.1.3"},"@storybook/react-webpack5":{"version":"9.1.3"},"storybook":{"version":"9.1.3"}},"addons":{"@storybook/addon-links":{"version":"9.1.3"},"@storybook/addon-webpack5-compiler-babel":{"version":"3.0.6"},"@chromatic-com/storybook":{"version":"4.1.1"},"@storybook/addon-docs":{"version":"9.1.3"},"@storybook/addon-styling-webpack":{"version":"2.0.0"}}}

docs/runtime~main.1a60110c.iframe.bundle.js renamed to docs/runtime~main.f016f9f4.iframe.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)