Repository navigation
Conversation
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]>
There was a problem hiding this comment.
🟢 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
|
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) |
There was a problem hiding this comment.
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.
|
/review |
|
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. |
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-responsivecontainer. 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?
Risk
The product changes are limited to new container for tables in templates.
Verification
Packaging changes reviewed?