Refactor receiver list UI and improve accessibility

Reorganized the receiver list in `CreateEnvelopeWizardPopup.razor`:
- Separated "existing receivers" and "new receiver" input rows.
- Added editable fields for `FullName` and `EmailAddress` with real-time updates.
- Introduced "Remove" and "Add Receiver" buttons with updated icons and accessibility attributes.

Updated `sender-page.css`:
- Styled `.sender-create-wizard__receiver-existing-list` for better usability and responsiveness.
- Improved button designs with hover effects and consistent sizing.
- Simplified layout and removed redundant styles.

Enhanced responsiveness and accessibility:
- Made receiver list scrollable and visually distinct.
- Improved localization support with updated titles and `aria-labels`.

Removed redundant code to streamline implementation.
This commit is contained in:
2026-11-10 09:41:38 +01:00
parent 25c03b350b
commit 858b748e65
2 changed files with 81 additions and 81 deletions

View File

@@ -1502,6 +1502,21 @@
gap: 0.5rem;
}
.sender-create-wizard__receiver-existing-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
max-height: min(24vh, 220px);
overflow-y: auto;
overflow-x: hidden;
scrollbar-gutter: stable;
padding-right: 0.2rem;
}
.sender-create-wizard__receiver-existing-list > .sender-create-wizard__receiver-row--new {
flex: 0 0 auto;
}
.sender-create-wizard__receiver-row {
display: flex;
align-items: flex-start;
@@ -1555,54 +1570,37 @@
.sender-create-wizard__receiver-remove-btn {
flex: 0 0 auto;
width: 2rem;
height: 2rem;
width: auto;
height: auto;
align-self: stretch;
aspect-ratio: 1 / 1;
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid rgba(220, 38, 38, 0.2);
border-radius: 6px;
background: transparent;
color: #b91c1c;
padding: 0;
line-height: 1;
}
.sender-create-wizard__receiver-remove-btn:hover:not(:disabled) {
background: rgba(220, 38, 38, 0.08);
}
.sender-create-wizard__receiver-remove-btn:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.sender-create-wizard__receiver-item--new {
border-style: dashed;
}
.sender-create-wizard__receiver-remove-btn:hover {
transform: scale(1.05);
}
.sender-create-wizard__receiver-add-inline-btn {
flex: 0 0 auto;
width: 2rem;
height: 2rem;
width: auto;
height: auto;
align-self: stretch;
aspect-ratio: 1 / 1;
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid rgba(14, 116, 144, 0.25);
border-radius: 6px;
background: rgba(236, 254, 255, 0.95);
background: transparent;
color: #0f766e;
padding: 0;
line-height: 1;
}
.sender-create-wizard__receiver-add-inline-btn:hover:not(:disabled) {
background: rgba(207, 250, 254, 1);
}
.sender-create-wizard__receiver-add-inline-btn:disabled {
opacity: 0.55;
cursor: not-allowed;
transition: transform 0.2s ease;
}
.sender-create-wizard__upload-stage {
@@ -1776,6 +1774,10 @@
align-items: stretch;
}
.sender-create-wizard__receiver-existing-list {
max-height: min(20vh, 180px);
}
.sender-create-wizard__receiver-fields-stack {
grid-template-columns: 1fr;
}
@@ -1785,13 +1787,10 @@
}
.sender-create-wizard__receiver-remove-btn {
width: auto;
align-self: flex-end;
}
.sender-create-wizard__receiver-add-inline-btn {
width: auto;
min-width: 2rem;
align-self: flex-end;
}