Skip to content

Commit

Permalink
Merge pull request #56 from fedspendingtransparency/mod/dev-6045-tabl…
Browse files Browse the repository at this point in the history
…e-expand-aria-label

Dev-6045 Aria Label for Table Row Expand
  • Loading branch information
jonhill13 authored Oct 2, 2020
2 parents efe3801 + 4c7ee73 commit 2adff4c
Show file tree
Hide file tree
Showing 26 changed files with 384 additions and 355 deletions.
12 changes: 10 additions & 2 deletions components/Picker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,20 @@ const Picker = ({
<div className="usa-dt-picker__dropdown-container">
{children
? (
<button ref={buttonRef} className="usa-dt-picker__button" onClick={toggleMenu}>
<button
ref={buttonRef}
aria-label="Dropdown Toggle Button"
className="usa-dt-picker__button"
onClick={toggleMenu}>
{children}
</button>
)
: (
<button ref={buttonRef} className="usa-dt-picker__button" onClick={toggleMenu}>
<button
ref={buttonRef}
aria-label="Dropdown Toggle Button"
className="usa-dt-picker__button"
onClick={toggleMenu}>
<span className="usa-dt-picker__button-text">
{selectedOption}
</span>
Expand Down
1 change: 1 addition & 0 deletions components/infoTooltip/TooltipWrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ export default class TooltipWrapper extends React.Component {
<div
role="button"
tabIndex="0"
aria-label="Tooltip Hover Wrapper"
className="tooltip__hover-wrapper"
onBlur={this.closeTooltip}
onFocus={this.showTooltip}
Expand Down
1 change: 1 addition & 0 deletions components/table/ExpandableRow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const ExpandableRow = ({
className="usda-table__cell">
<button
className="usda-table__expand-button"
aria-label="Expand Table Row Button"
onClick={toggleExpand}>
<FontAwesomeIcon icon={icon} size="2x" />
</button>
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions docs/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,15 @@
}</style><script>/* globals window */
/* eslint-disable no-underscore-dangle */
try {
if (window.parent !== window) {
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__;
window.__VUE_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__VUE_DEVTOOLS_GLOBAL_HOOK__;
if (window.top !== window) {
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.top.__REACT_DEVTOOLS_GLOBAL_HOOK__;
window.__VUE_DEVTOOLS_GLOBAL_HOOK__ = window.top.__VUE_DEVTOOLS_GLOBAL_HOOK__;
window.top.__VUE_DEVTOOLS_CONTEXT__ = window.document;
}
} catch (e) {
// eslint-disable-next-line no-console
console.warn('unable to connect to parent frame for connecting dev tools');
console.warn('unable to connect to top frame for connecting dev tools');
}</script><link href="main.38969f1f6af64ba3224d.css" rel="stylesheet"><style>#root[hidden],
#docs-root[hidden] {
display: none !important;
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script src="runtime~main.8d2305287a3fdd5e443f.bundle.js"></script><script src="vendors~main.8d2305287a3fdd5e443f.bundle.js"></script><script src="main.8d2305287a3fdd5e443f.bundle.js"></script></body></html>
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script src="runtime~main.20ad8f7850d8103b52d0.bundle.js"></script><script src="vendors~main.20ad8f7850d8103b52d0.bundle.js"></script><script src="main.20ad8f7850d8103b52d0.bundle.js"></script></body></html>
11 changes: 5 additions & 6 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Storybook</title><meta name="viewport" content="width=device-width,initial-scale=1"><style>html, body {
<!doctype html><html lang="en"><head><meta charset="utf-8"/><title>Storybook</title><meta name="viewport" content="width=device-width,initial-scale=1"/><style>html, body {
overflow: hidden;
height: 100%;
width: 100%;
Expand All @@ -7,13 +7,12 @@
}</style><script>/* globals window */
/* eslint-disable no-underscore-dangle */
try {
if (window.parent !== window) {
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__;
window.__VUE_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__VUE_DEVTOOLS_GLOBAL_HOOK__;
if (window.top !== window) {
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.top.__REACT_DEVTOOLS_GLOBAL_HOOK__;
}
} catch (e) {
// eslint-disable-next-line no-console
console.warn('unable to connect to parent frame for connecting dev tools');
console.warn('unable to connect to top frame for connecting dev tools');
}</script><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><link rel="shortcut icon" href="/img/favicon.ico"><link rel="icon" type="image/ico" href="./img/favicon.ico" sizes="192x192"><style>@font-face{
font-family: 'Source Sans Pro';
src: url('fonts/sourcesanspro-light-webfont.eot') format('eot'),
Expand Down Expand Up @@ -114,4 +113,4 @@
}</style><title>Data Transparency UI</title><style>#root[hidden],
#docs-root[hidden] {
display: none !important;
}</style></head><body><div id="root"></div><div id="docs-root"></div><script>window['DOCS_MODE'] = false;</script><script src="runtime~main.44172ae601677c5429df.bundle.js"></script><script src="vendors~main.3d238527487f67fa0c8a.bundle.js"></script><script src="main.bdeb9f13706318054a20.bundle.js"></script></body></html>
}</style></head><body><div id="root"></div><div id="docs-root"></div><script>window['DOCS_MODE'] = false;</script><script src="runtime~main.286b69a873d49f2f199c.bundle.js"></script><script src="vendors~main.459801d1cd2e00f6dbbd.bundle.js"></script><script src="main.44b2d03b5bf4085b2d0b.bundle.js"></script></body></html>
2 changes: 2 additions & 0 deletions docs/main.20ad8f7850d8103b52d0.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/main.20ad8f7850d8103b52d0.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/main.44b2d03b5bf4085b2d0b.bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions docs/main.8d2305287a3fdd5e443f.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/main.8d2305287a3fdd5e443f.bundle.js.map

This file was deleted.

1 change: 0 additions & 1 deletion docs/main.bdeb9f13706318054a20.bundle.js

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/runtime~main.20ad8f7850d8103b52d0.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docs/runtime~main.8d2305287a3fdd5e443f.bundle.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion docs/sb_dll/storybook_ui-manifest.json

Large diffs are not rendered by default.

123 changes: 66 additions & 57 deletions docs/sb_dll/storybook_ui_dll.LICENCE
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.15.0
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/

/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/

/*!
* Fuse.js v3.4.6 - Lightweight fuzzy-search (http://fusejs.io)
*
* Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
* All Rights Reserved. Apache Software License 2.0
*
* http://www.apache.org/licenses/LICENSE-2.0
*/

/*!
Expand All @@ -29,13 +25,6 @@
* see https://github.com/es-shims/es5-shim/blob/master/LICENSE
*/

/*!
* isobject <https://github.com/jonschlinkert/isobject>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/

/*!
* https://github.com/paulmillr/es6-shim
* @license es6-shim Copyright 2013-2016 by Paul Miller (http://paulmillr.com)
Expand All @@ -47,58 +36,78 @@
*/

/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
* isobject <https://github.com/jonschlinkert/isobject>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/

/** @license React v16.8.6
* react.production.min.js
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/

/** @license React v0.18.0
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v16.8.6
* react-is.production.min.js
/** @license React v16.12.0
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v0.13.6
* scheduler.production.min.js
/** @license React v16.12.0
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/*
object-assign
(c) Sindre Sorhus
@license MIT
*/

/*!
* Fuse.js v3.4.5 - Lightweight fuzzy-search (http://fusejs.io)
*
* Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
* All Rights Reserved. Apache Software License 2.0
*
* http://www.apache.org/licenses/LICENSE-2.0
*/

/** @license React v16.8.6
* react-dom.production.min.js
/** @license React v16.12.0
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
2 changes: 1 addition & 1 deletion docs/sb_dll/storybook_ui_dll.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions docs/vendors~main.20ad8f7850d8103b52d0.bundle.js

Large diffs are not rendered by default.

Loading

0 comments on commit 2adff4c

Please sign in to comment.