#5169 closed enhancement (fixed)
Class for number of new messages
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.0 | Priority: | low |
Severity: | normal | Version: | 1.2 |
Component: | Messages | Keywords: | good-first-bug has-patch |
Cc: |
Description
Hi,
The <span> containing the number of new messages in object-nav (#messages-personal-li) doesn't have a different class for no messages (could also be a different class if there are new messages). In this way you could hide the number for 0 new messages or give a different style if there are new messages.
Attachments (1)
Change History (9)
#1
@
11 years ago
- Milestone changed from Awaiting Review to 2.0
- Priority changed from normal to low
- Version changed from 1.8.1 to 1.2
#4
@
11 years ago
Turns out none of the BP profile nav items have classes around the span count, not just Messages.
#5
@
11 years ago
- Keywords has-patch added
Created a patch for all menu items (friends,groups,messages,notifications). I added a small change that all counts are now using number_format_i18n() for styling the number if needed. Also bp-messages-loader.php is now synced to look the same as the others.
I can see how this would be useful.
In the meantime, you could set a CSS class with jQuery if you really need to.