Skip to content

.hidden css class does not hide the button #36

@tractorcow

Description

@tractorcow

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions