From 9750dc943c760b865ff94db1ee17890fbd4e44f7 Mon Sep 17 00:00:00 2001 From: Jan Hassel Date: Mon, 28 Feb 2022 21:26:25 +0100 Subject: [PATCH] fix(storybook): remove CARBON_REACT prefix from rtl env var (#10826) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Taylor Jones --- packages/react/.storybook/Container.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/.storybook/Container.js b/packages/react/.storybook/Container.js index d6b256c73d6a..13a765f18df9 100644 --- a/packages/react/.storybook/Container.js +++ b/packages/react/.storybook/Container.js @@ -13,7 +13,7 @@ import React, { useEffect } from 'react'; function Container({ story, id }) { useEffect(() => { const originalDirection = document.documentElement.dir; - if (process.env.CARBON_REACT_STORYBOOK_USE_RTL === 'true') { + if (process.env.STORYBOOK_USE_RTL === 'true') { document.documentElement.dir = 'rtl'; } return () => {