Skip to content

Commit

Permalink
Sam's review
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Mar 21, 2024
1 parent 6b900e4 commit 2626b1c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/pigment-css-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ declare module '@pigment-css/react/theme' {

## Right-to-left support

To support right-to-left (RTL) languages, add the `dir="rtl"` attribute to your app's `<html>` element or any other equivalent top level container. Then, update your bundler config as follows:
To support right-to-left (RTL) languages, add the `dir="rtl"` attribute to your app's `<html>` element or any other equivalent top level container. Then, update your bundler config as follows to generate styles for both directions:

### Next.js

Expand All @@ -679,8 +679,8 @@ module.exports = withPigment(nextConfig, {
css: {
// Specify your default CSS authoring direction
defaultDirection: 'ltr',
// To output CSS for the opposite direction to `defaultDirection`
// Default is `false`.
// Generate CSS for the opposite of the `defaultDirection`
// This is set to `false` by default
generateForBothDir: true,
},
});
Expand All @@ -698,8 +698,8 @@ export default defineConfig({
css: {
// Specify your default CSS authoring direction
defaultDirection: 'ltr',
// To output CSS for the opposite direction to `defaultDirection`
// Default is `false`.
// Generate CSS for the opposite of the `defaultDirection`
// This is set to `false` by default
generateForBothDir: true,
},
}),
Expand Down

0 comments on commit 2626b1c

Please sign in to comment.