

Modals, Popups, Popovers, Lightboxes
source link: https://syntax.fm/show/602/modals-popups-popovers-lightboxes
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Apr 17th, 2023
Modals, Popups, Popovers, Lightboxes
👇 Download Show✏️ Edit Show Notes
In this Hasty Treat, Scott and Wes talk through the differences between modals, popups, popovers, lightboxes, and dialog boxes.
Show Notes
- 00:31 Welcome
- 02:25 What's popping up?
- 02:59 What's a modal?
- 08:33 Pop overs and lightboxes
- 10:41 Explicit dismiss and light dismiss
- 11:30 Inert property
- inert
- 16:30 Backdrop pseudo element
- Dialog with animation
- 19:26 Dialog
- 28:12:11 Making accessibility easier
const showButton = document.getElementById('showDialog');
const favDialog = document.getElementById('favDialog');
const outputBox = document.querySelector('output');
const selectEl = favDialog.querySelector('select');
const confirmBtn = favDialog.querySelector('#confirmBtn');
// "Show the dialog" button opens the <dialog> modally
showButton.addEventListener('click', () => {
favDialog.showModal();
});
// "Favorite animal" input sets the value of the submit button
selectEl.addEventListener('change', (e) => {
confirmBtn.value = selectEl.value;
});
// "Confirm" button of form triggers "close" on dialog because of [method="dialog"]
favDialog.addEventListener('close', () => {
outputBox.value = `ReturnValue: ${favDialog.returnValue}.`;
});
Tweet us your tasty treats
Recommend
-
19
Last week we talked about Navigation in SwiftUI . This week I want to continue the topic with Modals , Alerts , ActionSheet...
-
46
A popover is a transient view that shows up on top of a content on the screen when a user clicks on a control button or within a defined area. For example, clicking on an info icon on a specific list item to get the item d...
-
393
Multiple Modals on One Page Using HTML, CSS, and JavaScript 09/07/2020: Consider whether this is something you really want to do. Opening multiple modals on one page isn’t great for a...
-
6
Removing Nested Modals From Digital ProductsLooking into the root problems and offering alternative UX patterns.This article is part of my Little UX Lessons Series.
-
9
react-native-popable Popovers, tooltips for React Native. 🤖 Controlled and uncontrolled popovers ✍️ Customizable popov...
-
26
Home macOS Tutorials Menus and Popovers in Menu Bar Apps for macOS
-
3
Blog Post Presenting Popovers on iPhone with SwiftUI In our SwiftUI In Production blog post, we wrote about our learnings from fir...
-
5
Web platform concepts can sometimes be quite different, yet seem very similar. Semantics, behaviours and characteristics can be tricky to distinguish. As a new
-
12
Brief Note on Popovers with Dialogs May 26, 2023; 0 Comments
-
6
Positioning anchored popovers Published 16 days ago in ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK