Revert "Issue #3070375 by lauriii, sacarney: Hidden buttons in off-canvas dialog are not being hidden" This reverts commit 52fedda6.