We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the React renderer draws a table, it doesn't draw the table right to left properly based on the content.
Example can be seen at the bottom of the page. https://www.take2games.com/data-request/ar
The text was updated successfully, but these errors were encountered:
Here's the workaround. The css to handle this should really be in the renderer I think.
import { documentToReactComponents } from '@contentful/rich-text-react-renderer'; import { css } from '@emotion/core'; const cssRichTextMarkdown = css` :dir(rtl) { th, td { text-align: right; direction: rtl; } } `; function ReactRichText({richText}) { return <div css={cssRichTextMarkdown}>{documentToReactComponents(richText)}</div>; }
Sorry, something went wrong.
No branches or pull requests
When the React renderer draws a table, it doesn't draw the table right to left properly based on the content.
Example can be seen at the bottom of the page.
https://www.take2games.com/data-request/ar
The text was updated successfully, but these errors were encountered: