boonebgorges / buddypress-docs

GNU General Public License v3.0
106 stars 44 forks source link

buddypress-docs should force BP "community" styles to load on CPT pages #730

Closed boonebgorges closed 10 months ago

boonebgorges commented 11 months ago

Certain elements in Docs interfaces don't look right without BP's "community" styles. Specifically, when using Nouveau, the global directory tabs are unstyled:

without-community-styles

If I force the styles to load, it looks better:

with-community-styles

I think we can fix this with a targeted filter callback for bp_enqueue_assets_in_bp_pages_only, or perhaps by manually firing the bp_enqueue_community_scripts hook. But @dcavins I'm wondering whether you think this would have adverse side effects.

boonebgorges commented 10 months ago

Looks like this change is specific to BP 12.0. See https://buddypress.trac.wordpress.org/changeset/13306, https://buddypress.trac.wordpress.org/ticket/8679. So it should be fixed as part of our BP 12.0 compat release.