-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UX: update
/new
toggle styles, class names (#23154)
* Minor style adjustments * Removes "all" count because it's redundant to the count on New * Updates generic class names with -- modifier to follow BEM and help avoid class name collisions * Hides the toggle when bulk select is enabled (the UI ends up being too busy)
- Loading branch information
1 parent
b03c26e
commit 2a49757
Showing
10 changed files
with
45 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
app/assets/javascripts/discourse/app/raw-templates/list/new-list-header-controls.hbr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{{#if view.staticLabel}} | ||
<span class="static-label">{{view.staticLabel}}</span> | ||
{{else}} | ||
<button class="topics-replies-toggle all{{#if view.allActive}} active{{/if}}"> | ||
{{view.allButtonLabel}} | ||
<button class="topics-replies-toggle --all{{#if view.allActive}} active{{/if}}"> | ||
{{i18n "filters.new.all"}} | ||
</button> | ||
<button class="topics-replies-toggle topics{{#if view.topicsActive}} active{{/if}}"> | ||
<button class="topics-replies-toggle --topics{{#if view.topicsActive}} active{{/if}}"> | ||
{{view.topicsButtonLabel}} | ||
</button> | ||
<button class="topics-replies-toggle replies{{#if view.repliesActive}} active{{/if}}"> | ||
<button class="topics-replies-toggle --replies{{#if view.repliesActive}} active{{/if}}"> | ||
{{view.repliesButtonLabel}} | ||
</button> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters