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.
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 forbackgrund-color
and other similar CSS properties, referring to the element's currentcolor
. 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.