Skip to content

Conversation

@jdmartinez1062
Copy link
Contributor

@jdmartinez1062 jdmartinez1062 commented Dec 10, 2025

Description

Previously, when a user couldn't create a topic on a category the New Topic button would be disabled. This behaviour was changed . Currently, a user can click the New Topic button on a category they can't create a topic. However, the composer will not have a selected category, unless the category has a subcategory where the user can post on. In this case, the composer will have that said subcategory selected by default.

This PR adds CSS classes (can-create-topic and cannot-create-topic) to the New Topic button to enable theme developers and site admins to style the button based on user permissions. For example, themes can now visually indicate when a user cannot create topics in the current category.

@ZogStriP
Copy link
Member

@jdmartinez1062 what's the context for this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants