From f86d2ed1cd3920d800eb4c5b11fe8ecc70f84547 Mon Sep 17 00:00:00 2001 From: GurukiranP Date: Wed, 30 Sep 2026 14:17:20 +0530 Subject: [PATCH 1/2] [MOSIP-44045] [#1355] Fixed the inline input field validation issue triggered by clicking the Upload button on the Bulk Upload screen. Signed-off-by: GurukiranP --- .../create/create.component.css | 38 +++++++++++++++++++ .../create/create.component.html | 23 ++++++----- .../create/create.component.ts | 11 ++++++ 3 files changed, 62 insertions(+), 10 deletions(-) diff --git a/admin-ui/src/app/features/bulkupload/masterdataupload/create/create.component.css b/admin-ui/src/app/features/bulkupload/masterdataupload/create/create.component.css index e05007f5..40c035cb 100644 --- a/admin-ui/src/app/features/bulkupload/masterdataupload/create/create.component.css +++ b/admin-ui/src/app/features/bulkupload/masterdataupload/create/create.component.css @@ -158,3 +158,41 @@ margin-left: 8px; color: rgba(0, 0, 0, 0.54); } + + /* Master data upload form: keep the file section aligned with the form fields above */ + .masterdata-upload-form .labelfileupload { + display: block; + margin-left: 10px; + margin-top: 8px; + } + + .masterdata-upload-form .fileuploadcontainer, + .masterdata-upload-form .files-list .single-file { + margin-left: 10px; + } + + /* On mobile, use the same horizontal span as the mat-form-fields above (100% width with 10px padding) */ + @media (max-width: 600px) { + .masterdata-upload-form .fileuploadcontainer, + .masterdata-upload-form .files-list .single-file { + margin-right: 10px; + width: calc(100% - 20px); + } + } + + .masterdata-upload-form .file-upload-error { + display: block; + margin-left: 10px; + margin-top: 6px; + } + + /* Visible keyboard focus: the native file input is transparent, so outline its drop area instead */ + .masterdata-upload-form .fileuploadcontainer:focus-within { + outline: 2px solid #FF4081; + outline-offset: 2px; + } + + .masterdata-upload-form mat-label[role="button"]:focus { + outline: 2px solid #FF4081; + outline-offset: 2px; + } diff --git a/admin-ui/src/app/features/bulkupload/masterdataupload/create/create.component.html b/admin-ui/src/app/features/bulkupload/masterdataupload/create/create.component.html index c0db7af7..a4ab40a8 100644 --- a/admin-ui/src/app/features/bulkupload/masterdataupload/create/create.component.html +++ b/admin-ui/src/app/features/bulkupload/masterdataupload/create/create.component.html @@ -15,7 +15,7 @@

{{labelanddatas.title |translate}}

-
+
{{labelanddatas.operation | translate }} {{labelanddatas.title |translate}} {{'bulkUpload.validationMessages.tableName.required' | translate}} - Download CSV - Download Excel + Download CSV + Download Excel
- +
- {{ 'bulkUpload.validationMessages.file.required' | translate }} - + -
-
+
+ {{ 'bulkUpload.validationMessages.file.required' | translate }} +
-