Skip to content
Snippets Groups Projects
Commit 6eb2803c authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Facet active check alignment.

parent ec036274
No related merge requests found
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -82,12 +82,12 @@
.active-filters .facet,
.facet-group .active {
padding-right: .65rem;
background-color: @brand-primary;
color: #fff;
a { color: #fff; }
}
.active-filters .facet { padding-right: .65rem; }
.facet.active .badge,
.jstree-node.active .badge,
.jstree-node.active .badge .fa {
......
......@@ -25,7 +25,7 @@
? $this->currentPath() . $results->getUrlQuery()->removeFacet($this->title, $thisFacet['value'], $thisFacet['operator'])
: $this->currentPath() . $results->getUrlQuery()->addFacet($this->title, $thisFacet['value'], $thisFacet['operator']);
?>
<? if ($this->allowExclude): ?>
<? if (!$thisFacet['isApplied'] && $this->allowExclude): ?>
<div class="facet excludable facet<?=$thisFacet['operator'] ?><? if ($thisFacet['isApplied']): ?> active<? endif; ?><? if ($i >= $this->facets_before_more): ?> <?=$moreClass ?><?endif ?>">
<? $excludeURL = $thisFacet['isApplied']
? $this->currentPath() . $results->getUrlQuery()->removeFacet($this->title, $thisFacet['value'], $thisFacet['operator'])->addFacet($this->title, $thisFacet['value'], 'NOT')
......@@ -36,13 +36,13 @@
<a href="<?=$affectiveURL ?>" class="facet facet<?=$thisFacet['operator'] ?><? if ($thisFacet['isApplied']): ?> active<? endif; ?><? if ($i >= $this->facets_before_more): ?> <?=$moreClass ?><?endif ?>">
<? endif; ?>
<? if ($thisFacet['isApplied'] && !$this->allowExclude): ?>
<? if ($thisFacet['isApplied']): ?>
<span class="status"><i class="fa fa-check" aria-hidden="true"></i></span>
<? else: ?>
<span class="badge"><?=$this->localizedNumber($thisFacet['count'])?></span>
<? endif; ?>
<? if ($this->allowExclude): ?>
<? if (!$thisFacet['isApplied'] && $this->allowExclude): ?>
<a href="<?=$affectiveURL ?>" class="text">
<? else: ?>
<span class="text">
......@@ -54,15 +54,11 @@
<?=$this->escapeHtml($thisFacet['displayText'])?>
<? if ($this->allowExclude): ?>
</a>
<? else: ?>
</span>
<? endif; ?>
<? if ($this->allowExclude): ?>
<? if (!$thisFacet['isApplied'] && $this->allowExclude): ?>
</a>
</div>
<? else: ?>
</span>
</a>
<? endif; ?>
<? endforeach; ?>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment