Financial-Times / origami

The Origami Component System
58 stars 14 forks source link

Investigate what parts of Origami's component code could be replaced by Web Components code #32

Open chee opened 4 years ago

chee commented 4 years ago

For example, we need some code to handle the possibility of multiple versions of the same component trying to instantiate themselves on the same elements now that we no longer have a guaranteed flat tree.

This could be provided by the Custom Elements spec. Specifically customElement.define.

Investigate also how granularly we can polyfill the webcomponents spec so as not to cause too much of a weight on older browsers (https://caniuse.com/#feat=custom-elementsv1) that do not support web components natively.

JakeChampion commented 3 years ago

We've decided that this should be in the 2022 q1 okrs as researching/investigation