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

Proposal: Replace default color value with currentColor #14

Merged
merged 4 commits into from
Apr 4, 2020
Merged

Proposal: Replace default color value with currentColor #14

merged 4 commits into from
Apr 4, 2020

Conversation

SeinopSys
Copy link
Contributor

@SeinopSys SeinopSys commented Apr 2, 2020

Following the TypeScript changes I was excited to be able to utilize the package, but I immediately noticed the default value for the color property being slightly non-intuitive.

currentColor is a well-supported value for backgrund-color and other similar CSS properties, referring to the element's current color. Using this value as the default lets developers keep the code DRY while integrating the burger icon with their projects by eliminating the need to duplicate color values that already come from the page's CSS.

@luukdv
Copy link
Collaborator

luukdv commented Apr 3, 2020

Great idea, thanks again! I'm afraid I'll have to bump the version to 2.0 for this one.

@luukdv luukdv merged commit 3d34e63 into cyntler:master Apr 4, 2020
@SeinopSys SeinopSys deleted the proposal-default-color branch April 4, 2020 15:59
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.

2 participants