Viktor Havrylin
Viktor Havrylin
I found a hack workaround for using with `react-frame-component`. [Demo](https://stackblitz.com/edit/react-rgthal?file=index.js) Update: not working for Styled components, which using props. ```js // FramedComponent.js import React, { Component } from 'react'; import...
I use redux, so I just pass redux store through context to FramedComponent and on each store update replace frames stylesheets with `StyleSheet.instance.toHTML()`. It's a very dirty hack and can...
#6399 should fix it
@mxstbr maybe custom `.toString()` method can help us avoid all possible breaking changes, i.e. `Keyframes.prototype.toString()` will return generated animation name.
Continue my thoughts from #1354 Helper `keyframes` works similar to `injectGlobal`. They generate componentId from hash of passed styles and inject computed styles through global instance of StyleSheet. We could...
@SilencerWeb It's expected behavior. `withComponent` replaces original component `Heading` with component `div`, so `NameWithChangedTag`'s styles contains only `width: 100%; text-transform: ...`. For more understanding, please look at this modified example:...
@SilencerWeb The difference is that `styled.button` is low level element without internal styles. When you pass React component, `withComponent` knows nothing about it realization, so it only shallow copy styles,...
@LAITONEN You could create PR in https://github.com/styled-components/styled-components-website
In my project I have used slightly modified copy of https://github.com/facebook/react/blob/master/packages/react-dom/src/shared/dangerousStyleValue.js to add px to unitless numbers. IDK, is core styled-components team have in plans to make this working out...
@probablyup Can `` handle it?