Skip to content

Fix Paginator RTL navigation alignment - #70049

Merged
ilonatommy merged 8 commits into
mainfrom
snemeckayova/RTL-navigation-alighment-paginator
Oct 29, 2026
Merged

ilonatommy merged 8 commits into
mainfrom
snemeckayova/RTL-navigation-alighment-paginator

Conversation

@snemeckayova

Copy link
Copy Markdown
Contributor

Use a logical margin to align Paginator navigation consistently in LTR and RTL.

Description

Replace margin-left: auto with margin-inline-start: auto in the shared
Paginator navigation styles.

The physical left margin correctly separates the summary and navigation in LTR,
but leaves navigation beside the summary instead of at the opposite edge in RTL.
The logical margin preserves existing LTR behavior and places navigation at
inline-end in RTL.

Add browser regression coverage for LTR and RTL layouts, standard and custom
summaries, and increased text spacing.

Fixes dotnet/aspnetcore-scenario-tests#154

@github-actions github-actions Bot added the area-blazor Includes: Blazor, Razor Components label Oct 26, 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.

🔵 Needs a closer look

Required browser validation of RTL flex behavior and all four Selenium cases remains unavailable, and missing review artifacts prevent revision-bound source checks and feedback deduplication.

No open issues 🎉

What changed in this PR

Fixes QuickGrid Paginator navigation alignment in right-to-left layouts while preserving existing left-to-right behavior.

Changes:

  • Replaces the physical left margin with margin-inline-start: auto.
  • Adds browser regression coverage for both directions, standard and custom summaries, and increased text spacing.
  • Updates the dual-paginator test component to include a custom summary.
File Description
src/​Components/​test/​testassets/​BasicTestApp/​QuickGridTest/​QuickGridDualPaginatorComponent.razor Adds a custom summary to the bottom paginator.
src/​Components/​test/​E2ETest/​Tests/​QuickGridTest.cs Tests summary and navigation alignment and control ordering across layout variants.
src/​Components/​QuickGrid/​Microsoft.AspNetCore.Components.QuickGrid/​src/​Pagination/​Paginator.razor.css Uses a logical margin to align navigation at inline-end.

Review effort: Balanced

@snemeckayova snemeckayova self-assigned this Oct 29, 2026
@snemeckayova
snemeckayova marked this pull request as ready for review October 29, 2026 09:39
@snemeckayova
snemeckayova requested a review from a team as a code owner October 29, 2026 09:39
@ilonatommy

Copy link
Copy Markdown
Member

@snemeckayova do you have a screenshot of after fix situation? It would be easier to reason about the change.

@ilonatommy ilonatommy added feature-accessibility This issue has accessibility impact feature-blazor-quickgrid labels Oct 29, 2026
@snemeckayova

Copy link
Copy Markdown
Contributor Author

@snemeckayova do you have a screenshot of after fix situation? It would be easier to reason about the change.

@ilonatommy yes, here is RTL before:
rtl-before

RTL after:
rtl-after

LTR for reference:
ltr

@ilonatommy ilonatommy left a comment

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.

After test simplification we can merge.

@ilonatommy
ilonatommy enabled auto-merge (squash) October 29, 2026 11:13
@ilonatommy

Copy link
Copy Markdown
Member

/ba-g IIS test failures are not connected.

@ilonatommy
ilonatommy disabled auto-merge October 29, 2026 16:28
@ilonatommy
ilonatommy merged commit 32eaa2d into main Oct 29, 2026
30 of 32 checks passed
@ilonatommy
ilonatommy deleted the snemeckayova/RTL-navigation-alighment-paginator branch October 29, 2026 16:29
@ilonatommy

Copy link
Copy Markdown
Member

/backport to release/11.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/11.0 (link to workflow run)

@github-actions

Copy link
Copy Markdown
Contributor

✅ No documentation PR was created.

Confidence that documentation is needed: 5%

No docs needed: RTL styling bug fix with regression tests, confidently internal/bug-fix only.

Documentation surfaces considered

  • Conceptual article: Not required — Only Paginator.razor.css margin fix and tests; no public API, default, or documented behavior change.
  • Migration guidance: Not required — No user action needed on upgrade.
  • Breaking change: Not required — LTR behavior preserved; no compatibility impact.

@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 4, 2026
wtgodbe pushed a commit that referenced this pull request Nov 6, 2026
* Fix Paginator RTL navigation alignment

Co-authored-by: Soňa Nemečkayová <[email protected]>

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — f0c192d4 Deployed Oct 29, 2026 by ilonatommy via conclusion #123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components feature-accessibility This issue has accessibility impact feature-blazor-quickgrid

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants