From 97e7d0f6ad3a44af96a6a5ca9e763adbe2f80653 Mon Sep 17 00:00:00 2001 From: emyarod Date: Thu, 3 Oct 2019 15:34:16 -0500 Subject: [PATCH] fix(FileUploaderDropContainer): remove invalid role attribute --- .../src/components/FileUploader/FileUploader-story.js | 1 - .../react/src/components/FileUploader/FileUploader-test.js | 4 ---- .../components/FileUploader/FileUploaderDropContainer.js | 7 ------- 3 files changed, 12 deletions(-) diff --git a/packages/react/src/components/FileUploader/FileUploader-story.js b/packages/react/src/components/FileUploader/FileUploader-story.js index 4860d99e30d5..923caa9c2b63 100644 --- a/packages/react/src/components/FileUploader/FileUploader-story.js +++ b/packages/react/src/components/FileUploader/FileUploader-story.js @@ -104,7 +104,6 @@ const props = { ',' ), disabled: boolean('Disabled (disabled)', false), - role: text('ARIA role of the button (role)', ''), tabIndex: number('Tab index (tabIndex)', 0), onChange: action('onChange'), }), diff --git a/packages/react/src/components/FileUploader/FileUploader-test.js b/packages/react/src/components/FileUploader/FileUploader-test.js index b5ef7ed38c97..057f2e87fa61 100644 --- a/packages/react/src/components/FileUploader/FileUploader-test.js +++ b/packages/react/src/components/FileUploader/FileUploader-test.js @@ -132,10 +132,6 @@ describe('FileUploaderButton', () => { expect(wrapper.find('input').prop('disabled')).toEqual(true); }); - it('does have default role', () => { - expect(mountWrapper.props().role).toBeTruthy(); - }); - it('resets the input value onClick', () => { const input = mountWrapper.find(`.${prefix}--visually-hidden`); input.instance().value = ''; diff --git a/packages/react/src/components/FileUploader/FileUploaderDropContainer.js b/packages/react/src/components/FileUploader/FileUploaderDropContainer.js index 4ccbaa7f7a86..316df4c8ced4 100644 --- a/packages/react/src/components/FileUploader/FileUploaderDropContainer.js +++ b/packages/react/src/components/FileUploader/FileUploaderDropContainer.js @@ -25,7 +25,6 @@ export default function FileUploaderDropContainer(props) { multiple, name, onAddFiles, - role, tabIndex, ...other } = props; @@ -98,7 +97,6 @@ export default function FileUploaderDropContainer(props) {