I started out trying to style <Link>
elements from react-router
.
<Link style={{display: 'flex'}}>...</Link>
but it seems like it strips the display
CSS property specifically.
Does anyone know why and how to fix it?
I get the same problems with
<a style={{display: 'flex', marginTop: '10px'}}>Test link</a>
(Result: Only margin-top: 10px
is applied)
EDIT: For future reference, as I see this page still gets some views:
I really tried using multiple vendor-specific display
CSS attributes, and not just a single flex
attribute value, so I realize now that the question is very vague...
The problem is that the ReactJS team changed the way they parse CSS attributes in inline styles, and we "all" really relied on an undocumented (internal) code of ReactJS. So this used to work:
<div style={{'display': ['flex', '-webkit-flex']}}>
...
</div>
But this doesn't anymore, since they updated that part of the code.
For further details see e.g. https://github.com/facebook/react/issues/2020