oddbird / popover-polyfill

Polyfills the HTML popover attribute and showPopover/hidePopover/togglePopover methods onto HTMLElement, as well as the popovertarget and popovertargetaction attributes on <button> elements.
BSD 3-Clause "New" or "Revised" License
261 stars 13 forks source link

[BUG] CSS is not published #219

Closed felamaslen closed 2 months ago

felamaslen commented 2 months ago

Describe the bug CSS file is not present in node_modules/@oddbird/popover-polyfill upon running npm install @oddbird/popover-polyfill.

To Reproduce Steps to reproduce the behavior:

  1. Install the dependency: npm install @oddbird/popover-polyfill
  2. Check node_modules/@oddbird/popover-polyfill

Expected behavior A css file is present in this directory.

jgerigmeyer commented 2 months ago

This is intentional. Back in #137 we switched to automatically injecting the necessary CSS for the polyfill via JS: https://github.com/oddbird/popover-polyfill/blob/main/src/popover.ts#L57-L115