message: fix(popup): Fix RTL rendering for popups
  Fixes
  Add `dir` to `usePopupStack` to automatically set direction for portalled popups
diff: import React from 'react';
  import {PopupStack} from '@workday/canvas-kit-popup-stack';
  +import {useIsRTL} from '@workday/canvas-kit-react-common';
  /**
  * This hook should not be used directly. Use the `Popper` component instead.
  @@ -45,6 +46,7 @@ export const usePopupStack = <E extends HTMLElement>(
  ): React.RefObject<HTMLDivElement> => {
  const internalRef = React.useRef<HTMLDivElement>(null);
  const ref = (forwardRef || internalRef) as React.RefObject<HTMLDivElement>;
  + const isRTL = useIsRTL();
  // useState function input ensures we only create a container once.
  const [popupRef] = React.useState(() => {
  @@ -73,5 +75,15 @@ export const usePopupStack = <E extends HTMLElement>(
  };
  }, [ref, target, popupRef]);
  + // The direction will properly follow the theme via React context, but portals lose the `dir`
  + // hierarchy, so we'll add it back here.
  + React.useLayoutEffect(() => {
  + if (isRTL) {
  + ref.current?.setAttribute('dir', 'rtl');
  + } else {
  + ref.current?.removeAttribute('dir');
  + }
  + }, [ref, isRTL]);
  +
  return ref;
  };
  