It is not clear that these buttons will switch the code editor view. Suggestions:
File: index.php
Read-only file: PHP error_log
Since these are functioning similarly to tabs, I would also mark the active one. You can use aria-current="true". This attribute must also be toggled with JavaScript with onClick event or similar.
Test page: https://learn.wordpress.org/test/wordpress-playground-block-plugin-test-page/
The following buttons could use better labels.
It is not clear that these buttons will switch the code editor view. Suggestions:
Since these are functioning similarly to tabs, I would also mark the active one. You can use
aria-current="true"
. This attribute must also be toggled with JavaScript withonClick
event or similar.Docs: