Currently the expand is used for 2 usecases, overlays and things to be open or add a class to it. It is controlled currently over the closeOnEsc if it should be closed. The closeOnEsc is currently not correclty implemented when having multiple overlays open at once or a stack of overlays as this is more complex overlay and the closeOnEsc behaviour should be open moved into an own component. Another way would be moving the EscapeStack into an service.