Repository navigation
Dynamically stylable SVG - #3135
OiYouYeahYou wants to merge 1 commit into
Conversation
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
niik
left a comment
There was a problem hiding this comment.
Thank you so much for doing this @OiYouYeahYou. And I'm so sorry I haven't had the chance to get to this until now.
Can we remove the welcome illustration changes from this PR? When we add a dark theme we're still gonna keep the light style for the initial welcome flow so that'll make things a lot easier since that's the only illustrations that use multiple colors.
Getting rid of welcome illustrations should get rid of .outline2 leaving 1 and 3 which are pretty much identical so can we convert all outline3 to outline1s?
The opacity trick gets rid of the flag shadow custom color easily enough but then there's the paper shading in empty-no-file-selected. That's a little trickier but I think we can get that to work if we tweak the paths a little so that they don't overlap and then use opacity there as well, as such:
Once that's done I think we should be able to just use fill straight off, shouldn't we? No need for inline styles?
If you fix the color and the opacity I can take care of fixing up the paths afterwards. Just ignore the fact that that one illustration will look at bit off for now.
| #paperShadow { | ||
| fill: #ebf2fa; | ||
| } | ||
| #paperBackround { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| fill: #cadef3; | ||
| } | ||
| .shadow { | ||
| fill: #ebf2fa; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
Sorry to be difficult. But I deleted the repo as I, naively, did this on my master branch. Is it ok to make a new PR? As I can't even edit this PR. That being said would you like the PR to be too a 'non-master' branch? |
|
@OiYouYeahYou You're not being difficult at all, quite the opposite 😄 Just open a new PR and target master. We'll close this one out and reference this discussion from the new one. |
|
Done: #3773 |

In response to @niik's wonderful comment here #1515 (comment), I have made the SVGs dynamically stylable.
Currently, they have inline styles allowing them to be used as images with no changes in .scss or .tsx
If you accept these changes I'll follow up with relevant another PR with relevant .tsx changes and .scss additions to fully utilise