From 9f4b340f9ffc0f21c66f1cbf504df837af1bf079 Mon Sep 17 00:00:00 2001 From: Ilona Tomkowicz <32700855+ilonatommy@users.noreply.github.com> Date: Wed, 27 May 2026 09:57:01 +0200 Subject: [PATCH] Revert "docs(blazor): clarify ValidationSummary default CSS class and class-merging behavior" (#37195) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Revert "docs(blazor): clarify ValidationSummary default CSS class and class-m…" This reverts commit cd07aac55707473186640c3e5068082409734d37. * 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 97e596b50ede..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. `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. 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: