Yii2 Debug Toolbar / Add CSS Class

Hello,

On a test page we use a screenreader overlay.

In order to not let the screenreader read parts of the debug toolbar, what would be the best way to add a certain CSS class to the

element?

Should it be done with registerJs in the views/layouts/main?

Thanks in advance.

Regards
Joachim

I’ve never modified the Debug but I think it could be done this way. Try to register similar function:

$(document).ready(function() {
    $("#yii-debug-toolbar").addClass({your-class});
});