Bug 1828935 - Bump up conformation hint duration to improve a11y. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D175909
This commit is contained in:
Dão Gottwald 2023-04-20 11:58:39 +00:00
parent f6bcaa8c57
commit bee9890293

View File

@ -9696,9 +9696,9 @@ var ConfirmationHint = {
this._panel.setAttribute("data-message-id", messageId);
// The timeout value used here allows the panel to stay open for
// 1.5s second after the text transition (duration=120ms) has finished.
// If there is a description, we show for 4s after the text transition.
const DURATION = options.showDescription ? 4000 : 1500;
// 3s after the text transition (duration=120ms) has finished.
// If there is a description, we show for 6s after the text transition.
const DURATION = options.showDescription ? 6000 : 3000;
this._panel.addEventListener(
"popupshown",
() => {