Fixed tab display behavior for shadow toggle

Fixed displaying / hiding of tabs when toggling shadow content.

__Tasks:__

- [ ] gather feedback for my changes

__Informations:__

| Q             | A
| ------------- | ---
| Tests pass?   | ?
| Fixed tickets | 
| BC Breaks     |
| Doc           |