Skip to content

LG-4575: accessiblility issue where no file selected still shows after adding file. #5691

Merged
mdiarra3 merged 8 commits intomainfrom
LG-4575-file-input-include-title
Dec 15, 2021
Merged

LG-4575: accessiblility issue where no file selected still shows after adding file. #5691
mdiarra3 merged 8 commits intomainfrom
LG-4575-file-input-include-title

Conversation

@mdiarra3
Copy link
Contributor

@mdiarra3 mdiarra3 commented Dec 8, 2021

***Why? ***

Currently when a file is added to file upload. we still show "no file chosen."

Before:
Screen Shot 2021-12-08 at 11 56 35 AM

After:
Screen Shot 2021-12-08 at 11 57 34 AM

@mdiarra3 mdiarra3 requested review from aduth and jmdembe December 8, 2021 16:57
Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add a spec here? Testing Library's getByLabelText will find elements by an aria-label, so it seems we could just use that to make sure we can find an element by the expected label.

@mdiarra3 mdiarra3 requested a review from aduth December 13, 2021 14:53
Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great on my computer. On my phone, it says "Captured image, no file selected, button". I tried playing with role as well to see if we could control this a bit better, but it didn't seem to have any effect.

Overall, I still think it's an improvement, since at least it mentions that there's a captured image. I'll leave it to you and the team whether we should invest more to look into this.

@mdiarra3 mdiarra3 merged commit 04e2937 into main Dec 15, 2021
@mdiarra3 mdiarra3 deleted the LG-4575-file-input-include-title branch December 15, 2021 14:40
nathanberg added a commit that referenced this pull request Dec 16, 2021
* main: (50 commits)
  LG-5325 Doc Auth: Error dependent hints and enhanced field level errors (#5708)
  Setup platform authentication (#5632)
  Remove unused i18n keys by replacing dynamic key generation with static enumeration (#5706)
  Configure and fix Rubocop redundant disabling/enabling (#5711)
  LG-4575: accessiblility issue where no file selected still shows after adding file.  (#5691)
  Update rails to 6.1.4.3 (#5710)
  Add remote SAML Logout endpoint (#5676)
  Update "Frontend" CSS docs to reflect current approach (#5695)
  LG-3795 Harden CSP against JSONP endpoints on "safe" domains (#5704)
  LG-5261: Add cancel page logging to "Go Back" button (#5697)
  Add flow path to post doc capture submission events (LG-5257) (#5690)
  Log all vendor status in VendorStatus#track_event (#5703)
  Remove accept-terms-button in favor of ValidatedFieldComponent (#5687)
  Upgrade as many outdated Ruby dependencies as possible (LG-3828) (#5694)
  Remove BassCSS flex-object styling (#5702)
  Remove unused personal-key pattern validation message (#5701)
  Smoke tests in GitLab CI (#5699)
  Show a message in lower envs explaining how to use test SSNs (#5696)
  Remove temporary routes for SP redirects (#5679)
  LG-5262: Add logging to continue button on letter wait page (#5688)
  ...
jmhooper pushed a commit that referenced this pull request Dec 28, 2021
…r adding file. (#5691)

* LG-4575: accessible issue where no file selected still shows after selecting input

* LG-4575: file update

* LG-4575: update to just say captured image and update param name

* update to return filename

* LG-4575: add spec to ensure things are acting as expected

* LG-4575: update

* LG-4575: normalize yaml

* LG-4575: doc auth captured form
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants