Revert "Issue #3070375 by lauriii, jungle, larowlan, sacarney: [backport] Hidden buttons in off-canvas dialog are not being hidden" This reverts commit 3d7f169f.
mentioned in commit 4c3744d1