We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a969f4 commit 2d68ecfCopy full SHA for 2d68ecf
docs/src/BrandingCssVarsProvider.tsx
@@ -151,6 +151,8 @@ export default function BrandingCssVarsProvider(props: {
151
}
152
}, []);
153
useEnhancedEffect(() => {
154
+ // This is required to ensure that the layer order is declared first in the head
155
+ // because when the direction is RTL on the client, emotion reinserts the RTL styles back to the top of the insertion point.
156
if (direction === 'rtl') {
157
const head = document.querySelector('head');
158
if (head) {
0 commit comments