Plugin’s CSS isn’t properly scoped
-
Currently, this plugin has CSS that applies to more site admin pages than one would expect it to be loaded on while also then having CSS selectors which aren’t unique to this plugin.
As a result, I’m seeing the View Details for a plugin as showing the main content area below the right sidebar due to the
meow-admin.cssbeing loaded while it then applyingclear:both;to.section(among other styles; this one just causing a noticeable bug.)
See screenshot: https://cloudup.com/cVoVWHBXLRuIdeally, this CSS would only be loaded on the pages associated with this plugin’s functionality (ex. the Meow Apps settings page[s], media library, individual media item detail page, and possibly the media item lightbox [then leaving the View Details lightbox for plugins & all other views unaffected by this plugin.])
Also, it really should have CSS that’s scoped a bit further to avoid conflicts with anything else (ex. something like
.sectionby itself really has it so other elements from other plugins and even WordPress itself can be affected unintentionally.) Even if it’s loading on the right page, there might be some elements this shouldn’t bother adjusting or it should be scoped to only adjust its own stuff.It’s a minor bug, but it sure would be a nice one to see updated to clean things up. Also, it seems like something that should have a rather straightforward & hopefully quick fix (heck, either of those items above would likely fix it sufficiently, but both would be the more thorough improvement to things.)
The topic ‘Plugin’s CSS isn’t properly scoped’ is closed to new replies.