You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[release/9.0] [Identity][Templates] Ensure placeholders don't overlap with text (#57789)
Backport of #57783 to release/9.0
/cc @javiercn
# [Identity][Templates] Ensure placeholders don't overlap with text
Placeholder text on input textboxes overlaps with the label texts.
## Description
* As part of an accessibility fix, we started displaying placeholders on input elements.
* In some circumstances, these placeholders overlap with the labels on the input text boxes, making it problematic to read them.
* The fix addresses this by reducing the size of the placeholders and making inputs bigger to avoid any overlap.
Fixesdotnet/AspNetCore-ManualTests#3081
## Customer Impact
When the window size is small enough, customers could see overlapped text that's hard to read and is sometimes even impossible.
## Regression?
- [X] Yes
- [ ] No
8.0 since we introduced this behavior on 9.0 as part of accessibility fixes.
## Risk
- [ ] High
- [ ] Medium
- [x] Low
The attached videos serve as validation of the fix, in addition to that, the UI is completely customizable by customers.
## Verification
- [X] Manual (required)
- [ ] Automated
**Old behavior**


**New behavior**
https://github.com/user-attachments/assets/6eae3396-9794-402d-af65-e0bc89257a44https://github.com/user-attachments/assets/0343b4fc-5f55-4e46-a276-67c4c97645e2
## Packaging changes reviewed?
- [ ] Yes
- [ ] No
- [X] N/A
----
## When servicing release/2.1
- [ ] Make necessary changes in eng/PatchConfig.props
<inputasp-for="Input.OldPassword"class="form-control"autocomplete="current-password"aria-required="true"placeholder="Please enter your old password." />
15
+
<inputasp-for="Input.OldPassword"class="form-control"autocomplete="current-password"aria-required="true"placeholder="Enter the old password" />
<inputasp-for="Input.ConfirmPassword"class="form-control"autocomplete="new-password"aria-required="true"placeholder="Please confirm your new password."/>
25
+
<inputasp-for="Input.ConfirmPassword"class="form-control"autocomplete="new-password"aria-required="true"placeholder="Enter the new password"/>
Copy file name to clipboardExpand all lines: src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Account/Pages/Login.razor
Copy file name to clipboardExpand all lines: src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Account/Pages/Manage/ChangePassword.razor
<InputTexttype="password"@bind-Value="Input.OldPassword"id="Input.OldPassword"class="form-control"autocomplete="current-password"aria-required="true"placeholder="Please enter your old password." />
23
+
<InputTexttype="password"@bind-Value="Input.OldPassword"id="Input.OldPassword"class="form-control"autocomplete="current-password"aria-required="true"placeholder="Enter the old password" />
<InputTexttype="password"@bind-Value="Input.NewPassword"id="Input.NewPassword"class="form-control"autocomplete="new-password"aria-required="true"placeholder="Please enter your new password." />
28
+
<InputTexttype="password"@bind-Value="Input.NewPassword"id="Input.NewPassword"class="form-control"autocomplete="new-password"aria-required="true"placeholder="Enter the new password" />
<InputTexttype="password"@bind-Value="Input.ConfirmPassword"id="Input.ConfirmPassword"class="form-control"autocomplete="new-password"aria-required="true"placeholder="Please confirm your new password." />
33
+
<InputTexttype="password"@bind-Value="Input.ConfirmPassword"id="Input.ConfirmPassword"class="form-control"autocomplete="new-password"aria-required="true"placeholder="Enter the new password" />
0 commit comments