itmaybejj / editoria11y-wp

WordPress wrapper for Editoria11y
GNU General Public License v2.0
6 stars 2 forks source link

Append style tags to the body instead of the watched container #8

Closed cbirdsong closed 1 year ago

cbirdsong commented 1 year ago

Some <style> tags containing CSS for ed11y-element-result, ed11y-element-panel are appended to the element you set in "Check content in these containers". When I used <main>, this messed up styling on one site because it uses the following CSS:

main > *:last-child:not([class*="has-padding-"]) {
  padding-bottom: clamp(2rem, .98rem + 5.11vw, 6.5rem);
}

After the <style> tags were injected the last child was always one of those.

itmaybejj commented 1 year ago

Can do.

itmaybejj commented 1 year ago

Fixed.