Repository navigation
refactor(theme-classic): let rtlcss flip Infima like the other CSS - #13088
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
be620f0 to
d8a038a
Compare
✅ [V2]
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Size Change: 0 B Total Size: 12.1 MB ℹ️ View Unchanged
|
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
|
Size Change: 0 B Total Size: 12.1 MB ℹ️ View Unchanged
|
⚡️ Lighthouse report for the deploy preview of this PR
|
728bef3 to
f2fdfe3
Compare
f2fdfe3 to
fccb8d6
Compare
fccb8d6 to
44b365c
Compare
862c060 to
c3e090d
Compare
c3e090d to
5cdd859
Compare
df1d35d to
1d49068
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1d49068 to
dd37056
Compare
Motivation
Last part of moving Infima into the monorepo as
@docusaurus/infima.@docusaurus/infimano longer ships a pre-flippedinfima-rtl.css. For RTL sites, theme-classic loadsinfima.csslike LTR sites, and its RTL PostCSS plugin flips Infima like all the other CSS. This removes theinfima-rtl.cssbuild output, its export, the package'srtlcssdevDependency (its last one) and theme-classic's "skip Infima" special case. The/*rtl:raw:*/comment ofbreadcrumb.cssnow reaches the site's rtlcss, which still rotates the separator.The RTL plugin now calls
rtlcss()without options, the same as the formerrtlcss(result.root as ConfigOptions): rtlcss spreads the options over its defaults, and aRoothas none of their keys. It still creates one rtlcss instance per file, because rtlcss doesn't reset its state between files.Test Plan
Argos doesn't cover RTL, so I built minimal RTL sites (
falocale,direction: 'rtl', classic preset) on fix(css-cascade-layers): let the next plugins process the nodes they insert in the layer #13123 and on this PR, with a cold rspack cache (it isn't invalidated whenconfigurePostCsscode changes). The CSS is byte-identical:styles.*.cssvar()fallbacksbaseline widely available)f52e6b2d56baseline widely available)a13bc8987d["defaults"]b4fd577e2aThe website CSS (
BUILD_FAST=true docusaurus build --locale en) is byte-identical:styles.0f1a6eee87.css.On the full RTL site, the only JS difference is the module id of the Infima CSS import, whose path changes from
infima-rtl.csstoinfima.css.The
infimaArgos build showsinfima-rtl.cssas removed.Test links
Deploy preview: https://deploy-preview-13088--docusaurus-2.netlify.app/
Related issues/PRs
🤖 Generated with Claude Code