pdmfc/nova-action-button

.hidden css class does not hide the button

Opened this issue · 0 comments

With the below code, the field is still visible.

            ActionButton::make('Process')
                ->action(HandleRevokeRequest::class, $this->id)
                ->text($model->can_manage_revoke ? 'Approve/Reject' : '')
                ->hide(function () use ($model) {
                    return !$model->can_manage_revoke;
                })

This is to do with .flex class overriding the display: css property from .hidden

image

Potentially this could be fixed by only adding flex class if hidden is false, or you could add a more specific css selector