Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe authored and github-actions[bot] committed Oct 6, 2023
1 parent edab8cb commit 3411d78
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions src/Views/Traits/Helpers/FilterHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,13 @@ public function hasFilterDefaultValue(): bool
return ! is_null($this->filterDefaultValue);
}


public function getFilterLabelAttributes(): array
{
return [...['default' => true], ...$this->filterLabelAttributes];
}

public function hasFilterLabelAttributes(): bool
{
return !($this->filterLabelAttributes != ['default' => true] && $this->filterLabelAttributes != ['default' => false]);
return ! ($this->filterLabelAttributes != ['default' => true] && $this->filterLabelAttributes != ['default' => false]);
}

}
1 change: 0 additions & 1 deletion tests/Views/Traits/Helpers/FilterHelpersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,5 @@ public function can_get_filter_label_attributes(): void
$this->assertSame($filter2->getFilterLabelAttributes(), ['class' => 'text-xl', 'default' => true]);
$this->assertSame($filter3->getFilterLabelAttributes(), ['class' => 'text-2xl', 'default' => false]);


}
}

0 comments on commit 3411d78

Please sign in to comment.