fix(ui): text and password boxes pad their text once; shared password error state

- The text box hands its Padding to the content host itself; the template no longer adds it again, so
  typed text starts where the placeholder does (12 px, 8 px after a leading icon). Same for the password box.
- ui:Field.Error marks an input without a validating binding (a password box) with the error border and
  makes the sentence its help text; the Uploader and the login dialog use it instead of drawing their own.
- The brand mark keeps its orientation by itself; the local left-to-right settings are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-06 08:10:36 +00:00
1 parent 70dc18787a
commit a7f5f83e04
8 files changed
+52 -30

No files matched your search

+4 -3
View File
@@ -8,7 +8,8 @@ namespace Titano.App.Shell;
/// <summary>
/// The login form (BRIEF §12.7). It calls back the connection with the credentials and stays open with the
/// error sentence until the sign-in succeeds or the user cancels. The password never leaves the PasswordBox
/// except for that call. A failed sign-in is announced to screen readers and stays as the password box's help text.
/// except for that call. A failed sign-in is announced to screen readers and marks the password box (error border,
/// sentence as its help text) until the next attempt.
/// </summary>
public sealed partial class LoginDialog : TitanoWindow
{
@@ -42,7 +43,7 @@ public sealed partial class LoginDialog : TitanoWindow
{
SignIn.IsEnabled = false;
Error.Visibility = Visibility.Collapsed;
AutomationProperties.SetHelpText(Password, string.Empty);
Field.SetError(Password, null);
try
{
var error = await _signIn(User.Text, Password.Password);
@@ -53,7 +54,7 @@ public sealed partial class LoginDialog : TitanoWindow
}
Error.Text = error;
Error.Visibility = Visibility.Visible;
AutomationProperties.SetHelpText(Password, error);
Field.SetError(Password, error);
Password.Clear();
Password.Focus();
UIElementAutomationPeer.CreatePeerForElement(this)?.RaiseNotificationEvent(