Repository navigation
Fix Paginator RTL navigation alignment - #70049
Conversation
There was a problem hiding this comment.
🔵 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 do you have a screenshot of after fix situation? It would be easier to reason about the change. |
@ilonatommy yes, here is RTL before: |
ilonatommy
left a comment
There was a problem hiding this comment.
After test simplification we can merge.
…ps://github.com/dotnet/aspnetcore into snemeckayova/RTL-navigation-alighment-paginator
|
/ba-g IIS test failures are not connected. |
|
/backport to release/11.0 |
|
Started backporting to |
|
✅ 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
|
* Fix Paginator RTL navigation alignment Co-authored-by: Soňa Nemečkayová <[email protected]>



Use a logical margin to align Paginator navigation consistently in LTR and RTL.
Description
Replace
margin-left: autowithmargin-inline-start: autoin the sharedPaginator 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