Skip to content

Commit

Permalink
remove headerClass from filters
Browse files Browse the repository at this point in the history
  • Loading branch information
luanfreitasdev committed May 25, 2024
1 parent 40ed96a commit 3ba52e9
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
$defaultAttributes = $fieldClassName::getWireAttributes($field, $title);
$selectClasses = Arr::toCssClasses([data_get($theme, 'selectClass'), data_get($column, 'headerClass'), 'power_grid']);
$selectClasses = Arr::toCssClasses([data_get($theme, 'selectClass'), 'power_grid']);
$params = array_merge([...data_get($filter, 'attributes'), ...$defaultAttributes], $filter);
@endphp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
$defaultAttributes = $fieldClassName::getWireAttributes($field, $title);
$selectClasses = \Illuminate\Support\Arr::toCssClasses(['power_grid', data_get($theme, 'selectClass'), data_get($column, 'headerClass')]);
$selectClasses = \Illuminate\Support\Arr::toCssClasses(['power_grid', data_get($theme, 'selectClass')]);
$inputClasses = \Illuminate\Support\Arr::toCssClasses(['power_grid', data_get($theme, 'inputClass')]);
$params = array_merge(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
$defaultAttributes = $fieldClassName::getWireAttributes($field, array_merge($filter, (array)$column));
$filterClasses = Arr::toCssClasses([data_get($theme, 'inputClass'), data_get($column, 'headerClass'), 'power_grid']);
$filterClasses = Arr::toCssClasses([data_get($theme, 'inputClass'), 'power_grid']);
$placeholder = data_get($filter, 'placeholder');
$params = array_merge([...data_get($filter, 'attributes'), ...$defaultAttributes, $filterClasses], $filter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
$defaultAttributes = \PowerComponents\LivewirePowerGrid\Components\Filters\FilterSelect::getWireAttributes($field, $title);
$filterClasses = Arr::toCssClasses([data_get($theme, 'selectClass'), $class, data_get($column, 'headerClass'), 'power_grid']);
$filterClasses = Arr::toCssClasses([data_get($theme, 'selectClass'), $class, 'power_grid']);
$params = array_merge([...data_get($filter, 'attributes'), ...$defaultAttributes], $filter);
@endphp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
$selectClasses = Arr::toCssClasses([
data_get($theme, 'selectClass'),
$class,
data_get($column, 'headerClass'),
'power_grid',
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
$selectClasses = \Illuminate\Support\Arr::toCssClasses([
'power_grid',
data_get($theme, 'selectClass'),
data_get($column, 'headerClass'),
]);
$inputClasses = \Illuminate\Support\Arr::toCssClasses(['power_grid', data_get($theme, 'inputClass')]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
$filterClasses = Arr::toCssClasses([
data_get($theme, 'inputClass'),
data_get($column, 'headerClass'),
'power_grid',
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
$filterClasses = \Illuminate\Support\Arr::toCssClasses([
data_get($theme, 'selectClass'),
$class,
data_get($column, 'headerClass'),
'power_grid',
]);
Expand Down

0 comments on commit 3ba52e9

Please sign in to comment.