Skip to content

CFM-291_Show_the_count_of_members_on_the_members_tab #184

Conversation

Ioannis
Copy link

@Ioannis Ioannis commented Apr 19, 2024

No description provided.

?? $vv_obj?->group_members // Groups tab
?? []);
$tab_title = "<span class='tab-title'>{$title}</span>"
. "<span class='mx-2 badge rounded-pill bg-outline-primary'>{$num_group_members}</span>";
Copy link

@arlen arlen Apr 19, 2024

Choose a reason for hiding this comment

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

Let's not use Bootstrap utility classes here - they are fiddly and break the simpler styles. Instead just provide the class "tab-count". Then in co-base.css add the following selectors:

.tab-count {
   display: inline-block;
   margin: -4px 0;
   margin-left: 0.5em;
   padding: 1px 4px;
   font-size: 0.9em;
   border: 1px solid var(--cmg-color-link);
   border-radius: 16px;
}
.nav-link.active .tab-count {
   border-color: var(--cmg-color-body-txt);
}

@arlen arlen merged commit 54d2fdd into COmanage:develop Apr 20, 2024
@Ioannis Ioannis deleted the CFM-291_Show_the_count_of_members_on_the_members_tab branch April 20, 2024 15:55
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants