discourse/app/assets/stylesheets/common/select-kit
David Battersby dca698afa1
FEATURE: new topic button always enabled (#34603)
### What is this change?

When visiting a restricted category or tag where the current user does
not have permission to create a topic, we should still allow the user to
write a new topic under a different category or tag. This is especially
important when using the new topic button from the sidebar.

#### When the user does not have permission, the composer category
defaults to:

1) Subcategory (if SiteSetting.default_subcategory_on_read_only_category
is true and subcategory exists)
2) Default category chooser value of Category... prompting the user to
select a category from the dropdown

This PR is a follow up to #33495 which was reverted previously due to a
couple of issues which are now corrected:

- we no longer set a default category based on
`default_composer_category` (previously was step 2 above)
- category banner text when a user cannot create a topic is now showing
up correctly
- added a title attribute with more info for the disabled category in
the category dropdown in composer
- for staff only tags, when creating a topic from the tag page as a non
staff member we now automatically remove the restricted tag from the
tags field in composer (as the user cannot use this tag)
2025-09-16 17:01:49 +04:00
..
_index.scss FEATURE: Add previews to color palette selectors (#34129) 2025-08-11 11:51:01 +08:00
categories-admin-dropdown.scss
category-chooser.scss DEV: Use more css vars (#18561) 2022-10-12 16:05:42 +02:00
category-drop.scss UX: Content border color (#33908) 2025-07-28 16:17:06 -05:00
category-row.scss FEATURE: new topic button always enabled (#34603) 2025-09-16 17:01:49 +04:00
category-selector.scss DEV: Introduce stylelint (#29852) 2025-01-20 15:27:42 +00:00
color-palette-picker.scss FEATURE: Add previews to color palette selectors (#34129) 2025-08-11 11:51:01 +08:00
color-palettes.scss
combo-box.scss UX: switch group pages to horizontal nav (#31243) 2025-02-10 10:38:31 -05:00
composer-actions.scss DEV: Introduce stylelint (#29852) 2025-01-20 15:27:42 +00:00
dropdown-select-box.scss UX: Content border color (#33908) 2025-07-28 16:17:06 -05:00
email-group-user-chooser.scss DEV: Update lint-configs and auto-fix issues (#31485) 2025-02-24 23:32:31 +01:00
flair-row.scss DEV: Move to Sass compilation to dart-sass (#19910) 2023-02-07 12:24:57 -03:00
future-date-input-selector.scss DEV: Introduce stylelint (#29852) 2025-01-20 15:27:42 +00:00
icon-picker.scss
list-setting.scss
mini-tag-chooser.scss DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
multi-select.scss UX: Content border color (#33908) 2025-07-28 16:17:06 -05:00
notifications-button.scss
notifications-filter.scss DEV: Use css var font sizes (#18518) 2022-10-12 15:31:59 +02:00
period-chooser.scss DEV: Use css var font sizes (#18518) 2022-10-12 15:31:59 +02:00
select-kit.scss UX: Variable additions (#33473) 2025-07-09 18:53:01 -05:00
single-select.scss UX: Variable additions (#33473) 2025-07-09 18:53:01 -05:00
tag-chooser.scss UX: Use uniform style for tag counts (#11743) 2021-01-18 15:11:23 -05:00
tag-drop.scss UX: remove default use of quaternary color, update nav pill styles (#27502) 2024-06-24 09:54:34 -04:00
topic-chooser.scss FEATURE: Use new topic-chooser for invite modal (#15884) 2022-02-14 13:43:52 +02:00
topic-notifications-button.scss DEV: replaces topic-notifications-options by DMenu (#30298) 2024-12-16 19:59:18 +01:00
user-row.scss DEV: Use css var font sizes (#18518) 2022-10-12 15:31:59 +02:00