After a successful switching to Joomla 4, toolbar buttons were not working in "templates details and files" section. This was related with only T3 templates.
This solution is worked for me.
Copy files from;
public_html/layouts/joomla/toolbar
to
public_html/plugins/system/t3/base-bs3/html/layouts/joomla/toolbar
I hope this will be useful.