[入力エラー] ファイルアップロードで入力エラー時にファイル参照欄を赤線で囲う対応の見直し #1868
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
概要
ファイルアップロードで入力エラー時にファイル参照欄を赤線で囲おうとしていましたが、赤線が表示されていない画面がありましたので対応しました。
詳細
エラー時
<input type="file">
に border-danger クラスを追加しても赤線枠が表示されない↓
エラー時
<label class="custom-file-label">
に border-danger クラスを追加すると赤線枠が表示される※
<input type="file">
、<label class="custom-file-label">
両方に border-danger クラスを追加している画面もありましたので、<label class="custom-file-label">
にだけ追加するよう見直しました。修正後画面
(参考)修正前画面
レビュー完了希望日
なし
関連Pull requests/Issues
なし
参考
なし
DB変更の有無
なし
チェックリスト