Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default EasyAdmin action CSS is lost #1

Open
j0r1s opened this issue Sep 26, 2023 · 0 comments
Open

Default EasyAdmin action CSS is lost #1

j0r1s opened this issue Sep 26, 2023 · 0 comments

Comments

@j0r1s
Copy link

j0r1s commented Sep 26, 2023

$action->setLabel('easy.menu.admin.crud.label.menu.'.$action->getName());
$actions->remove($page, $action->getAsConfigObject());
$actions->add($page, $action->getAsConfigObject());

This codes removes the default css classes of easyadmin actions (btn, btn btn-primary), this leads to unstyled button / links :
image

I'm not sure why the action is removed then readded to the collection, it seems to be not needed (anymore?) to update the actions labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant