CrazyTim / spin-wheel

An easy to use, themeable component for randomising choices and prizes.
https://crazytim.github.io/spin-wheel/examples/themes
MIT License
214 stars 57 forks source link

itemLabelStrokeWidth and itemLabelStrokeColor #24

Closed richardpeng closed 1 year ago

richardpeng commented 1 year ago

I'd like to use the same label color on both light and dark backgrounds by creating labels with white text outlined in black. Kind of like using CSS text-shadow

CrazyTim commented 1 year ago

Hi @richardpeng, great idea. That would be a good option to make the labels stand out.

I am thinking two new properties; Wheel.itemLabelStrokeWidth and Wheel.itemLabelStrokeColor. I prefer "Stroke" instead of "Outline" because it is the term used in vector graphics software.

richardpeng commented 1 year ago

Those new properties are what I'm looking for. Thanks!