biotope / biotope-element

A web component
https://element.biotope.sh
15 stars 5 forks source link

How to do styling crossbrowser #29

Closed dweiger closed 6 years ago

dweiger commented 6 years ago

At the moment I can't find any proper description how to style a webcomponent.

jurekbarth commented 6 years ago

@dweiger we added a scss mixin to the current version: https://github.com/biotope/biotope-element/blob/master/src/host.mixin.scss Still at the moment we do not support scoped styling in polyfilled browsers. Also i don't know yet how slotted contents are polyfilled, i'll try to add documentation today or early next week and i will keep you updated here.

timomayer commented 6 years ago

@jurekbarth thanks. please add to the docu that we stick to our normal component BEM naming schema for the webcomponents, especially because of the not support of scoped styles in older browsers.

timomayer commented 6 years ago

@jurekbarth @dweiger can we close this issue or are their any open things beside the mixin?

dweiger commented 6 years ago

In my opinion we can close it. There was also an issue in the build that is updated now so works in a proper way.