Missing ability to set text direction on html element (dir=ltr/rtl) of preview frame #236
Closed
4 tasks done
Labels
enhancement
New feature or request
Clear and concise description of the problem
Hi,
I'm developing in a project which relies on rtlcss to get correct text/page flow in arabic.
The stylesheets are transformed so that every property depending on right/left alignments have a selector like
For example:
results in
This requires me to be able to set the
dir
attribute on the<html>
element of the page the component is viewd in.Suggested solution
The simplest solution could be to add a block
htmlAttrs
similar to nuxt to the histoire config.This would allow to add other parameters linke
lang
, etc. as well.Alternative
A premium solution ❤ would be to have a config option to enable "LTR/RTL" rendering which could allow the user to toggle text direction globally for all component previews.
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: