filamentphp / filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
https://filamentphp.com
MIT License
18.07k stars 2.83k forks source link

Action Group with Label set doesn't show Label on the UI #7561

Closed abishekrsrikaanth closed 1 year ago

abishekrsrikaanth commented 1 year ago

Package

filament/tables

Package Version

v3.0.12

Laravel Version

v10.18

Livewire Version

v3.0-beta.7

PHP Version

PHP 8.2

Problem description

When creating an ActionGroup with a label set, doesn't show the label

ActionGroup::make([
                Action::make('a')->label('Action A'),
                Action::make('b')->label('Action B'),
            ])->label('Header Actions Label')
CleanShot 2023-08-08 at 20 31 42@2x

In addition to the above issue, when there are multiple ActionGroups, they stick to each other. They need a margin between them

CleanShot 2023-08-08 at 20 41 24@2x

Expected behavior

As per the documentation here https://filamentphp.com/docs/3.x/actions/grouping-actions#customizing-the-group-trigger-style and the image showcased, the label should show on the ActionGroup

image

Steps to reproduce

Please refer to the code in the below repository. Class ActionGroupLabelNotDisplayIssue and the following code should help reproduce this issue

    public function table(Table $table): Table
    {
        return $table->query(function () {
            return User::query();
        })->columns([
            TextColumn::make('name'),
            TextColumn::make('email'),
        ])->actions([

        ])->headerActions([
            ActionGroup::make([
                Action::make('a')->label('Action A'),
                Action::make('b')->label('Action B'),
            ])->label('Header Actions Label')
        ]);
    }

Reproduction repository

https://github.com/abishekrsriaanth/filament-test

Relevant log output

No response

danharrin commented 1 year ago

->button()