Skip to content

Commit 03a5ded

Browse files
authored
Merge pull request #255 from fedspendingtransparency/fix/dev-14333
DEV - 14333: 508 Compliance updates cont.
2 parents 22d8086 + 3b1820f commit 03a5ded

23 files changed

Lines changed: 32 additions & 24 deletions

components/DownloadIconButton.jsx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,30 +46,36 @@ const DownloadIconButton = ({
4646
tooltipPosition={tooltipPosition}
4747
tooltipComponent={tooltipComponent}>
4848
<button
49+
type="button"
4950
className="usda-button"
5051
title={buttonText}
5152
aria-label={buttonText}
52-
disabled={downloadInFlight}
53+
disabled={downloadInFlight || !isEnabled}
5354
onClick={startDownload}
54-
style={{backgroundColor: backgroundColor}}>
55-
<FontAwesomeIcon icon={icon} spin={downloadInFlight} color='#dfe1e2'/>
55+
style={{ backgroundColor }}
56+
tabIndex={!isEnabled ? -1 : 0}
57+
aria-hidden={!isEnabled}>
58+
<FontAwesomeIcon icon={icon} spin={downloadInFlight} color="#dfe1e2" />
59+
<span style={{ color: '#dfe1e2' }}>{buttonText}</span>
5660
</button>
57-
<span style={{color: '#dfe1e2'}}>{buttonText}</span>
5861
</TooltipWrapper>
5962
);
6063
}
6164
return (
6265
<div className={`usda-download-btn${disabledClass}`}>
6366
<button
67+
type="button"
6468
className="usda-button"
6569
title={buttonText}
6670
aria-label={buttonText}
6771
disabled={downloadInFlight}
6872
onClick={startDownload}
69-
style={{backgroundColor: backgroundColor}}>
73+
style={{ backgroundColor }}
74+
tabIndex={!isEnabled ? -1 : 0}
75+
aria-hidden={!isEnabled}>
7076
<FontAwesomeIcon icon={icon} spin={downloadInFlight} />
77+
<span>{buttonText}</span>
7178
</button>
72-
<span>{buttonText}</span>
7379
</div>
7480
);
7581
};

dist/data-transparency-ui.css

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

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/iframe.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,4 +627,4 @@
627627

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

630-
import './main.b642ca17.iframe.bundle.js';</script></body></html>
630+
import './main.8f65eee7.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":1769636476931,"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"}}}
1+
{"generatedAt":1769783090489,"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"}}}

docs/runtime~main.cbca2c66.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/stories-card-mdx.e957e987.iframe.bundle.js renamed to docs/stories-card-mdx.85e82e42.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)