simonihmig / ember-stargate

Modern lightweight portals for Ember
MIT License
68 stars 12 forks source link

Empty portal targets do not pass the :empty CSS selector #612

Closed spuxx1701 closed 1 year ago

spuxx1701 commented 1 year ago

It appears that empty portal targets do not match the :empty CSS selector. An example:

<PortalTarget @name='my-portal-target' class='portal-target' />
.portal-target:empty {
  display: none;
}

Does not result in the element receiving that pseudo-class. I'm not entirely sure whether that can be fixed, but it'd be extremely helpful to be able to hide portal-targets via CSS in case they're unused.