diff --git a/Gemfile.lock b/Gemfile.lock index efeae68cf6e..a31a5abc72c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -172,10 +172,10 @@ GEM aws-sigv4 (~> 1.1) aws-sigv4 (1.6.0) aws-eventstream (~> 1, >= 1.0.2) - axe-core-api (4.3.2) + axe-core-api (4.7.0) dumb_delegator virtus - axe-core-rspec (4.3.2) + axe-core-rspec (4.7.0) axe-core-api dumb_delegator virtus @@ -408,8 +408,8 @@ GEM method_source (1.0.0) mini_histogram (0.3.1) mini_mime (1.1.2) - mini_portile2 (2.8.2) - minitest (5.18.1) + mini_portile2 (2.8.4) + minitest (5.19.0) msgpack (1.6.0) multiset (0.5.3) nenv (0.3.0) @@ -480,7 +480,7 @@ GEM nio4r (~> 2.0) raabro (1.4.0) racc (1.7.1) - rack (2.2.7) + rack (2.2.8) rack-attack (6.5.0) rack (>= 1.0, < 3) rack-cors (1.1.1) @@ -514,8 +514,9 @@ GEM actionpack (>= 5.0.1.rc1) actionview (>= 5.0.1.rc1) activesupport (>= 5.0.1.rc1) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest nokogiri (>= 1.6) rails-erd (1.6.1) activerecord (>= 4.2) @@ -575,20 +576,20 @@ GEM rspec-expectations (3.12.3) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) - rspec-mocks (3.12.5) + rspec-mocks (3.12.6) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) - rspec-rails (6.0.1) + rspec-rails (6.0.3) actionpack (>= 6.1) activesupport (>= 6.1) railties (>= 6.1) - rspec-core (~> 3.11) - rspec-expectations (~> 3.11) - rspec-mocks (~> 3.11) - rspec-support (~> 3.11) + rspec-core (~> 3.12) + rspec-expectations (~> 3.12) + rspec-mocks (~> 3.12) + rspec-support (~> 3.12) rspec-retry (0.6.2) rspec-core (> 3.3) - rspec-support (3.12.0) + rspec-support (3.12.1) rspec_junit_formatter (0.6.0) rspec-core (>= 2, < 4, != 2.12.0) rubocop (1.55.1) @@ -725,7 +726,7 @@ GEM nokogiri (~> 1.8) yard (0.9.28) webrick (~> 1.7.0) - zeitwerk (2.6.8) + zeitwerk (2.6.11) zonebie (0.6.1) zxcvbn (0.1.9) diff --git a/app/javascript/packages/document-capture/components/file-input.tsx b/app/javascript/packages/document-capture/components/file-input.tsx index e121a6cc224..19cd54ad6c8 100644 --- a/app/javascript/packages/document-capture/components/file-input.tsx +++ b/app/javascript/packages/document-capture/components/file-input.tsx @@ -34,9 +34,9 @@ interface FileInputProps { hint?: string; /** - * Optional banner overlay text + * Banner overlay text */ - bannerText?: string; + bannerText: string; /** * Error message text to show on invalid file type selection @@ -216,6 +216,7 @@ function FileInput(props: FileInputProps, ref: ForwardedRef) { const hintId = `${inputId}-hint`; const innerHintId = `${hintId}-inner`; const labelId = `${inputId}-label`; + const showInnerHint: boolean = !value && !isValuePending && !isMobile; /** * In response to a file input change event, confirms that the file is valid before calling @@ -264,8 +265,13 @@ function FileInput(props: FileInputProps, ref: ForwardedRef) { // When no file is selected, provide a slightly more verbose label // including the actual