fix(storybook): remove CARBON_REACT prefix from rtl env var
MODIFY
packages/react/.storybook/Container.js
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 () => {

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 <tay1orjones@users.noreply.github.com>