dialog element for this type of responsive navigation?dialog elements include a native keyboard trap. When a dialog is open, the tab index is isolated to the contents of the dialog, greatly improving the keyboard navigation experience.dialog elements include native functionality to close model with the escape button.dialog elements include native functionality to restore focus to the previously focused element when the modal is closed.dialog elements include native functionality for a backdrop behind the modal.dialog elements convey the intention of element to the browser allowing the browser to potentially render an element in the best possible way for the device. For example, select elements are rendered different on desktop browser than mobile browsers.dialog element is technically never opened on larger devices. Instead, the dialog element is set to display: block. If the dialog is opened (dialog.show()) when the browser width increases, it causes the focus to change. The display:block; hack, circumvents the issue. This an atypical implementation could cause issues on some devices.