chemerisuk / better-dateinput-polyfill

input[type=date] polyfill
http://chemerisuk.github.io/better-dateinput-polyfill/
MIT License
259 stars 58 forks source link

How do I style? #120

Open easierbycode opened 5 years ago

easierbycode commented 5 years ago

How do we apply external styles? I can override the <object> style, but not sure how to override anything in shadow dom using rules or variables.

example: https://jsfiddle.net/easierbycode/4ps10hx2

chemerisuk commented 5 years ago

@easierbycode use object.contentDocument to get ref on the document element. On the other case it's probably better in future to allow style modification with custom css variables... I need to investigate possible use cases for presentation styling.