Skip to content

Commit 5207f34

Browse files
authored
Fix RTL fallback card navigation (#14285)
1 parent 09bbdad commit 5207f34

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/NavGrid/CardsNav.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ export interface Props {
2222
const { links, size, class: classes } = Astro.props as Props;
2323
2424
const currentPage = new URL(Astro.request.url).pathname;
25+
// Fallback pages can render English content while their navigation labels use the page locale.
26+
const textDirection = Astro.locals.t.dir();
2527
---
2628

27-
<section class:list={['cards-nav', classes, 'not-content']}>
29+
<section dir={textDirection} class:list={['cards-nav', classes, 'not-content']}>
2830
<slot />
2931
<Grid {size}>
3032
{

0 commit comments

Comments
 (0)