From a809a62bd1a3d2b3d0a0a23b2666b0303da5a5e7 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Thu, 19 Oct 2023 16:48:18 -0300 Subject: [PATCH] fix broken link and Dialog reference in Joy --- docs/data/joy/customization/right-to-left/right-to-left.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/data/joy/customization/right-to-left/right-to-left.md b/docs/data/joy/customization/right-to-left/right-to-left.md index 637c33cf01363b..6809a66228b5fc 100644 --- a/docs/data/joy/customization/right-to-left/right-to-left.md +++ b/docs/data/joy/customization/right-to-left/right-to-left.md @@ -29,16 +29,16 @@ document.dir = 'rtl'; Add the `dir="rtl"` attribute to any other HTML element or React component if you need limit the scope of the text direction to that element and its children. :::warning -Components that use React portals (like the [Dialog](/joy-ui/react-dialog/)) do _not_ inherit the `dir` attribute from parents, because they actually render outside of their parental DOM trees. +Components that use React portals (like the [Modal](/joy-ui/react-modal/)) do _not_ inherit the `dir` attribute from parents, because they actually render outside of their parental DOM trees. You must apply the `dir` attribute directly to these components if it's not [globally](#globally) defined as right-to-left: ```jsx - // ❌ this Dialog will still be left-to-right (the default) + // ❌ this Modal will still be left-to-right (the default) - // ✅ this Dialog will be right-to-left as intended + // ✅ this Modal will be right-to-left as intended ```