Skip to content

Commit

Permalink
Merge pull request #26 from awcodes/fix/radio-checkbox-hidden-labels
Browse files Browse the repository at this point in the history
Fix: hidden labels on radios and checkboxes
  • Loading branch information
awcodes authored Feb 23, 2023
2 parents c9c417b + ebc3c65 commit 94fe1f6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion resources/css/plugin.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
min-width: 100% !important;
}

.filament-table-repeater-column.has-hidden-label label {
.filament-table-repeater-column.has-hidden-label label:not(.filament-forms-checkbox-list-component-option-label, .filament-forms-radio-component label) {
@apply not-sr-only text-sm mb-2 md:sr-only;
}

Expand Down
2 changes: 1 addition & 1 deletion resources/dist/filament-table-repeater.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Components/TableRepeater.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function getChildComponents(): array
}

foreach ($components as $component) {
if (method_exists($component, 'disableLabel')) {
if (method_exists($component, 'disableLabel') && ! $component instanceof \Filament\Forms\Components\Checkbox) {
$component->disableLabel();
}
}
Expand Down

0 comments on commit 94fe1f6

Please sign in to comment.