Skip to content

Dynamically stylable SVG - #3135

Closed
OiYouYeahYou wants to merge 1 commit into
desktop:masterfrom
OiYouYeahYou:master
Closed

OiYouYeahYou wants to merge 1 commit into
desktop:masterfrom
OiYouYeahYou:master

Conversation

@OiYouYeahYou

Copy link
Copy Markdown
Contributor

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

@shiftkey shiftkey added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Oct 24, 2017
@stale

stale Bot commented Nov 8, 2017

Copy link
Copy Markdown

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale Bot added the stale label Nov 8, 2017
@shiftkey shiftkey removed the stale label Nov 8, 2017

@niik niik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

screen shot 2018-01-11 at 22 31 47

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.

fill: #cadef3;
}
.shadow {
fill: #ebf2fa;

This comment was marked as spam.

@OiYouYeahYou

Copy link
Copy Markdown
Contributor Author

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?

@niik

niik commented Jan 11, 2018

Copy link
Copy Markdown
Member

@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.

@OiYouYeahYou

Copy link
Copy Markdown
Contributor Author

Done: #3773

@niik niik mentioned this pull request Jun 1, 2018
8 of 12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants