Martin Schneider 6/27/2023

Tinkering with Web Components – Part 2

Read Original

This article details the author's journey in solving Web Component styling issues by adopting a LightDOM approach instead of ShadowDOM. The solution allows the component to use the page's existing CSS, leading to the creation and release of an 'msme-sharing-button' package on npm. It reflects on the benefits and mental shifts required when working with native browser APIs for web components.

Tinkering with Web Components – Part 2

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
ServiceNow and Microsoft Copilot
Marius Sandbu 1 votes
2
The Learning Loop and LLMs
Martin Fowler 1 votes