Skip to content

[release/11.0] Keep Blazor Weather table scrolling within the page - #70241

Merged
wtgodbe merged 1 commit into
dotnet:release/11.0from
dariatiurina:dariatiurina-accessibility-backport-audit
Nov 6, 2026
Merged

wtgodbe merged 1 commit into
dotnet:release/11.0from
dariatiurina:dariatiurina-accessibility-backport-audit

Conversation

@dariatiurina

@dariatiurina dariatiurina commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Backport of #70021 to release/11.0

/cc @dariatiurina

Keep Blazor Weather table scrolling within the page

Confine narrow Weather table scrolling to the table instead of the page.

Description

Wrap the Weather tables in the Blazor Web App and standalone WebAssembly templates in Bootstrap's existing table-responsive container. The container is keyboard-focusable and named "Weather forecasts", preserving the native table and its content while keeping horizontal scrolling local at narrow viewport widths.

Fixes dotnet/aspnetcore-scenario-tests#168

Customer Impact

Fixes accessibility issue in the newly created templates.

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

The product changes are limited to new container for tables in templates.

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

Backport of dotnet#70021. Preserve release-specific passkey test attributes while adding the original Weather overflow fix and regression tests.

Co-authored-by: Copilot App <[email protected]>
@dariatiurina dariatiurina self-assigned this Nov 2, 2026
@dariatiurina
dariatiurina marked this pull request as ready for review November 2, 2026 09:02
Copilot AI balanced review requested due to automatic review settings November 2, 2026 09:02
@dariatiurina
dariatiurina requested a review from a team as a code owner November 2, 2026 09:02
@ilonatommy ilonatommy added area-blazor Includes: Blazor, Razor Components feature-accessibility This issue has accessibility impact feature-templates labels Nov 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are blocking the Weather table scrolling backport.

No open issues 🎉

What changed in this PR

Backports the Weather table scrolling fix to release/11.0, keeping horizontal overflow within the table on narrow screens in generated Blazor apps.

Changes:

  • Wraps both templates’ Weather tables in keyboard-focusable responsive containers named “Weather forecasts.”
  • Adds narrow-viewport regression tests for Blazor Web App and standalone WebAssembly templates.
  • Shares the viewport assertion and updates the existing table selector for the new wrapper.
File Description
src/​ProjectTemplates/​Web.ProjectTemplates/​content/​ComponentsWebAssembly-CSharp/​Pages/​Weather.razor Adds the responsive, accessible table container to standalone WebAssembly.
src/​ProjectTemplates/​Web.ProjectTemplates/​content/​BlazorWeb-CSharp/​BlazorWebCSharp.1/​Components/​Pages/​Weather.razor Adds the same container to the Blazor Web App template.
src/​ProjectTemplates/​test/​Templates.Blazor.Tests/​BlazorWebTemplateTest.cs Adds a narrow-viewport test for the published Server-interactive app.
src/​ProjectTemplates/​test/​Templates.Blazor.Tests/​BlazorWasmTemplateTest.cs Adds a narrow-viewport test for the published standalone WebAssembly app.
src/​ProjectTemplates/​test/​Templates.Blazor.Tests/​BlazorTemplateTest.cs Checks document width at 320px after five forecast rows load and adjusts the existing selector.

Review effort: Balanced

@dariatiurina dariatiurina added the Servicing-consider Shiproom approval is required for the issue label Nov 2, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hi @dariatiurina. Please make sure you've updated the PR description to use the Shiproom Template. Also, make sure this PR is not marked as a draft and is ready-to-merge.

To learn more about how to prepare a servicing PR click here.


[Theory]
[InlineData(BrowserKind.Chromium)]
public async Task BlazorWasmStandaloneTemplate_WeatherDoesNotOverflowAtNarrowViewport(BrowserKind browserKind)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new standalone WebAssembly regression test is added under the class-level [QuarantinedTest], so it inherits Quarantined=true and is excluded from ordinary test runs. The separate non-quarantined test exercises the blazor -int Server template, not this blazorwasm template, leaving the WebAssembly fix without gating coverage. Please narrow or remove the class quarantine (or otherwise provide stable non-quarantined coverage) so this regression test runs in the normal test path.

Human-directed and GitHub Copilot-generated.

@rbhanda rbhanda added this to the 11.0.1 milestone Nov 2, 2026
@PureWeen

PureWeen commented Nov 3, 2026

Copy link
Copy Markdown
Member

/review

@ilonatommy ilonatommy added Servicing-approved Shiproom has approved the issue and removed Servicing-consider Shiproom approval is required for the issue labels Nov 4, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hi @dariatiurina. This PR was just approved to be included in the upcoming servicing release. Somebody from the @dotnet/aspnet-build team will get it merged when the branches are open. Until then, please make sure all the CI checks pass and the PR is reviewed.

@wtgodbe
wtgodbe merged commit 3bf2f59 into dotnet:release/11.0 Nov 6, 2026
70 checks passed
@dotnet-policy-service dotnet-policy-service Bot removed this from the 11.0.1 milestone Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-reviewed-needs-changes area-blazor Includes: Blazor, Razor Components feature-accessibility This issue has accessibility impact feature-templates Servicing-approved Shiproom has approved the issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants