Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for named colors in svg export #122

Merged
merged 2 commits into from
Feb 11, 2022

Conversation

phoozle
Copy link
Contributor

@phoozle phoozle commented Jan 18, 2022

The documentation stated I could use named colors such as :black or :white but digging into the code I found that all color arguments were being prefixed with a #.

I have gone ahead and added in a handler for when color arguments are passed in as symbols. This also allows for the use of the currentColor keyword.

Copy link
Owner

@whomwah whomwah left a comment

Choose a reason for hiding this comment

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

Great spot and thanks for the PR Matthew. Could you add your change/fix to the CHANGELOG and I'll get this merged. Some like:

## [Unreleased]

- Added in a handler for when color arguments are passed in as symbols e.g `color: :yellow`. This also allows for the use of the `:currentColor` keyword.

@phoozle
Copy link
Contributor Author

phoozle commented Feb 8, 2022

@whomwah great - CHANGELOG is all sorted

@whomwah whomwah self-assigned this Feb 11, 2022
@whomwah whomwah merged commit bdaeea7 into whomwah:master Feb 11, 2022
@whomwah whomwah mentioned this pull request Feb 11, 2022
@phoozle phoozle deleted the svg-named-colors branch February 13, 2022 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants