Expose More Region Styles to User #3323
Replies: 2 comments 3 replies
-
That makes sense! |
Beta Was this translation helpful? Give feedback.
-
Upon closer look, the region plugin exposes the region element, so I don't believe we need a new interface for that. Also, each region/marker is given the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice to easily change styling elements of each region (not the content) during and after instantiation:
I understand it is dangerous to expose positional styles to the user because the Regions Plugin uses certain styles (top, left, right, position, z-index, etc.) to ensure that regions and markers are positioned correctly. Perhaps we could expose a new
styles
member to the SingleRegion class of typeOmit<CSSStyleDeclaration, 'position' | 'top' | 'left' | 'right' | 'z-index' | ... >
. That would apply toSingleRegion.element
.Alternatively, another solution could be to manually expose a few more styles as optional parameters to SingleRegion:
Beta Was this translation helpful? Give feedback.
All reactions