Muted Categories are Visible on Mobile

AI-generated summary

Muted Categories are Visible on Mobile

Mikitos reported that muted categories are visible on the mobile version of Discourse, despite being muted. justin explained that this is intentional, as the behavior was changed in version 2.4 to prevent removing categories fully from the UI. Muted categories will not appear in the Latest page, but can be accessed through the drop-down or categories page.

justin also mentioned that a CSS selector is available for muted categories, allowing them to be hidden via theme component. Mikitos clarified that muted categories will only be muted, not invisible, unless the theme component is used.

However, Mikitos reported that the theme component is inconsistent with desktop and doesn’t work on mobile. justin identified a bug in the theme component and provided a fix in a GitHub commit. Additionally, justin suggested demoting muted categories to the bottom of the list as an alternative solution.

Despite muting a certain category, it seems to be visible on the mobile version of Discourse.

Browser: iOS Safari
iOS Version: 13.3.1

1 Like

This is intentional actually. We changed the behavior in 2.4 because we were finding removing the categories fully from the UI was heavy handed. You won’t see that category’s topics in Latest still but you can navigate to the category from the drop down or the categories page. That being said there is now a CSS selector on muted categories so you can hide them via theme component if you like.

6 Likes

Wait so you mean that kind of categories view is removed now?

We didn’t remove any views; we just allowed muted categories to show up in places where they were previously hidden.

3 Likes

Basically, a muted category will just be muted, not invisible?

1 Like

Correct but you can add this theme component to hide the muted categories if you like.

6 Likes

We have the theme component on our site, however it’s inconsistent with desktop and still doesn’t get hidden on mobile. It’s probably a bug with the component?

@Mikitos there were some missing data attributes on some templates (which that theme component uses to hide muted categories), so I have a fix for that in this commit.

Additionally, we decided to try demoting muted categories to the bottom of the list if you do want to keep them viewable. Should be available on tests-passed as soon as checks finish.

5 Likes