Skip to content

.hidden css class does not hide the button #36

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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