Skip to content

Commit

Permalink
fix(css): don't let elgg-badge influence text alignment
Browse files Browse the repository at this point in the history
fixes #11769
  • Loading branch information
jdalsem committed May 18, 2018
1 parent 6c7689c commit b22cfc8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Expand Up @@ -2,10 +2,11 @@

$items = [];

foreach (['cogs', 'support', 'question', 'info'] as $icon) {
foreach (['cogs', 'support', 'question', 'info'] as $index => $icon) {
$items[] = [
'name' => $icon,
'icon' => $icon,
'badge' => $index ?: null,
'text' => "Menu item",
'href' => '#',
'link_class' => $icon == 'info' ? 'elgg-state elgg-state-notice' : '',
Expand Down
3 changes: 2 additions & 1 deletion views/default/elements/components/anchors.css
Expand Up @@ -27,7 +27,8 @@
display: inline-block;
color: $(text-color-strong);
background-color: $(background-color-soft);
padding: 3px 5px;
padding: .15rem .25rem;
margin-top: -.15rem;
text-align: center;
white-space: nowrap;
vertical-align: middle;
Expand Down
1 change: 1 addition & 0 deletions views/default/elements/components/menus.css
Expand Up @@ -212,6 +212,7 @@

.elgg-badge {
float: right;
margin-top: 0;
}

.elgg-anchor-icon {
Expand Down

0 comments on commit b22cfc8

Please sign in to comment.