From edc160f382b8a8f4f39060415d13948c1a0f27fa Mon Sep 17 00:00:00 2001 From: Ilona Tomkowicz <32700855+ilonatommy@users.noreply.github.com> Date: Wed, 27 May 2026 09:20:55 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Revert=20"docs(blazor):=20clarify=20Validat?= =?UTF-8?q?ionSummary=20default=20CSS=20class=20and=20class-m=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit cd07aac55707473186640c3e5068082409734d37. --- aspnetcore/blazor/forms/validation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/blazor/forms/validation.md b/aspnetcore/blazor/forms/validation.md index 97e596b50ede..7ade18ddff30 100644 --- a/aspnetcore/blazor/forms/validation.md +++ b/aspnetcore/blazor/forms/validation.md @@ -1042,7 +1042,7 @@ The component ``` -The and components support arbitrary attributes. Any attribute that doesn't match a component parameter is added to the generated `
` or `
    ` element. `ValidationSummary` applies the `validation-errors` CSS class to the generated `
      ` element by default. When a `class` attribute is supplied, the provided class value is combined with the default class. +The and components support arbitrary attributes. Any attribute that doesn't match a component parameter is added to the generated `
      ` or `
        ` element. Control the style of validation messages in the app's stylesheet (`wwwroot/css/app.css` or `wwwroot/css/site.css`). The default `validation-message` class sets the text color of validation messages to red: From 29de4c9df3dde68d620e87e9b3bf8dcf836f96b4 Mon Sep 17 00:00:00 2001 From: Ilona Tomkowicz <32700855+ilonatommy@users.noreply.github.com> Date: Wed, 27 May 2026 09:35:11 +0200 Subject: [PATCH 2/2] Correct version of docs Added information about class attribute replacement for ValidationMessage and ValidationSummary components. --- aspnetcore/blazor/forms/validation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/blazor/forms/validation.md b/aspnetcore/blazor/forms/validation.md index 7ade18ddff30..d86e7c21a3ad 100644 --- a/aspnetcore/blazor/forms/validation.md +++ b/aspnetcore/blazor/forms/validation.md @@ -1042,7 +1042,7 @@ The component ``` -The and components support arbitrary attributes. Any attribute that doesn't match a component parameter is added to the generated `
        ` or `
          ` element. +The and components support arbitrary attributes. Any attribute that doesn't match a component parameter is added to the generated `
          ` or `
            ` element. If a class attribute is supplied, its value replaces the component's default CSS class. Control the style of validation messages in the app's stylesheet (`wwwroot/css/app.css` or `wwwroot/css/site.css`). The default `validation-message` class sets the text color of validation messages to red: