wp-shortcake / shortcake

Shortcake makes using WordPress shortcodes a piece of cake.
GNU General Public License v2.0
664 stars 143 forks source link

Use select2 dropdownParent attr for css targetting #750

Closed goldenapples closed 7 years ago

goldenapples commented 7 years ago

When interacting with a select2 field, this attaches the dropdown container as a child of the attribute field view, using the dropdownParent option in select2.

This allows us to target the specific fields that we need to style with css using parent selectors, without resorting to hacks like trying to set a classname on the container element when it's created.

Replaces #749, as a fix for #748.