Skip to content

Conversation

@knowler
Copy link
Contributor

@knowler knowler commented Jan 29, 2026

In #318, justify-content: space-between was removed unnecessary and a hack was introduced in its place.

Flexbox layout already is directionality/writing-mode aware and justify-content has no bearing on the order of items, just their placement within the “main” axis (which is what gets flipped for dir=rtl; for a visual see: https://rtlstyling.com/posts/rtl-styling/#flexbox-layout-module).

This switches back to what it was before which is simpler as it doesn’t add extra elements or presentational, spacer elements that are hidden with ARIA.

To test, set dir=rtl on the <html> element and compare with the live site. Visually there should be no change.

In npmx-dev#318, `justify-content: space-between` was removed unnecessary and a
hack was introduced in its place.

Flexbox layout already is directionality/writing-mode aware and
`justify-content` has no bearing on the order of items, just their
placement within the “main” axis.

This switches back to what it was before which is simpler as it doesn’t
add extra elements, presentational elements that are hidden with ARIA.
@vercel
Copy link

vercel bot commented Jan 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs.npmx.dev Ready Ready Preview, Comment Jan 29, 2026 7:55pm
npmx.dev Ready Ready Preview, Comment Jan 29, 2026 7:55pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
npmx-lunaria Ignored Ignored Jan 29, 2026 7:55pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant