Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UX: Remove hardcoded "x" from tag count, use :before instead #26991

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

carsick
Copy link
Contributor

@carsick carsick commented May 12, 2024

Allow customization for the count symbol (x) in list items like Item x 4 with the :before pseudo-element

@@ -62,7 +62,7 @@ export function defaultRenderTag(tag, params) {
">";

if (params.count) {
val += " <span class='discourse-tag-count'>x" + params.count + "</span>";
val += " <span class='discourse-tag-count'>" + params.count + "</span>";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be using the tag-count class here instead of the discourse-tag-count? 🤔

@ZogStriP
Copy link
Member

@carsick I'm curious, what kind of customization are you looking for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants