Тёмный

Don't Waste Your Time Building Custom Dialogs 

Frontend FYI – by Jeroen
Подписаться 21 тыс.
Просмотров 4,4 тыс.
50% 1

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@nikitaliakhovka3489
@nikitaliakhovka3489 Год назад
tailwind has an `open` modifier to conditionally add styles when a or element is in an open state, e.g. open:opacity-100
@frontendfyi
@frontendfyi Год назад
This is so true!! You are right. Tailwind keeps adding so many features that I often forget what’s included. Amazing comment, thanks for adding that! 😁
@MicheleStaffiere
@MicheleStaffiere Год назад
should have just made the video using base JS and CSS. not Tailwind...
@frontendfyi
@frontendfyi Год назад
I’m sorry to hear you don’t like tailwind
@naylord5
@naylord5 Год назад
There are two types of people, the ones who are already using tailwind and the others than doesn't tried yet.. Trust me, once you try it, there is no coming back.
@CanisLatransMedia
@CanisLatransMedia 9 месяцев назад
Thank you, great video! Is it possible to animate dialog element with framer motion? Struggling to find a solution for it :/ 🙌🏽
@RomanFilenko
@RomanFilenko 20 дней назад
Thanks, great video❤. Any hack how to battle body scroll when dialog is opened? Overflow:hidden is not the option, makes layout shift.
@frontendfyi
@frontendfyi 19 дней назад
Thank you! As for the shift you probably want to add scrollbar-gutter: stable; this prevents the document from shifting when a scrollbar appears and disappears
@harpo187bling
@harpo187bling 8 месяцев назад
When i use this it does not trap the focus. I can tab onto the address bar.
@Pareshbpatel
@Pareshbpatel 7 месяцев назад
A clear tutorial on the new HTML Dialog Element. Thanks. {2024-02-16}, {2024-03-19}
@frontendfyi
@frontendfyi 7 месяцев назад
Yes, that is today!
@a_maxed_out_handle_of_30_chars
thank you, this helped me a lot :)
@ThugLifeModafocah
@ThugLifeModafocah Год назад
This is indeed AWESOME. Thanks for showing me.
@DavidsKanal
@DavidsKanal 3 месяца назад
I am now wasting my time building native dialogs instead 💪
@frontendfyi
@frontendfyi 3 месяца назад
Hahaha. It’s so fun though! If you liked this you’ll probably love the video that drops next week too!
@IvanKleshnin
@IvanKleshnin 7 месяцев назад
Wow, this is so much easier than using Headless UI Dialog + Transition components. Thank your for the video.
@Sahil-me5kg
@Sahil-me5kg Год назад
Nice Video ! just wanted to ask that sudden jump while closing dialog fixes if we make the inset-0 but it ocurrs if we scroll a bit if there is fixed navbar on top even if inset-0 is applied but works perfectly if no scroll . Any suggestions how to fix that ?
@amitakolkar2389
@amitakolkar2389 Год назад
Hi, Nice way to build a modal. But as.a part of accessibility focus needs to be trapped. Not sure but focus is not trapping in modal recently? Any idea?
@JustSall
@JustSall Год назад
Great Video. I have always struggled building Modal with forms. This makes it so much easier
@rithalius8219
@rithalius8219 Год назад
That was exactly what I need. Thanks a lot. Liked and subscribed.
@alintdg9896
@alintdg9896 Год назад
Amazing video!
@FlorianRumpel
@FlorianRumpel Год назад
Thank you it helped a lot but my modal isnt centered. Do you know why?
@frontendfyi
@frontendfyi Год назад
Try adding position fixed and inset 0 to your modal. That should work I think.
@FlorianRumpel
@FlorianRumpel Год назад
@@frontendfyi Thank you very much
@armandsalle8447
@armandsalle8447 Год назад
wao nice 🙌 I will test if it can be used for popover or side sheet!
@frontendfyi
@frontendfyi Год назад
Perhaps using the show method instead of showmodal then makes more sense. Definitely try that!
@Happyday-nn6rh
@Happyday-nn6rh Год назад
nice your work ❤‍🔥
@frontendfyi
@frontendfyi Год назад
Thank you so much ❤️
@equistenelabs
@equistenelabs Год назад
very useful example! What browser are you using for these examples?
@frontendfyi
@frontendfyi Год назад
Thanks! I’m using the Arc browser.
Далее
БЕЛКА ЗВОНИТ ДРУГУ#cat
00:20
Просмотров 788 тыс.
Лучше одной, чем с такими
00:54
Просмотров 222 тыс.
ХОККЕЙНАЯ КЛЮШКА ИЗ БУДУЩЕГО?
00:29
#kikakim
00:10
Просмотров 8 млн
The New dialog HTML Element Changes Modals Forever
12:09
How the PROS Use Tailwind
9:55
Просмотров 51 тыс.
dialog = the easiest way to make a popup modal
9:40
Просмотров 193 тыс.
Thinking on ways to solve DIALOG
16:07
Просмотров 39 тыс.
Subtle, yet Beautiful Scroll Animations
5:04
Просмотров 1,7 млн
БЕЛКА ЗВОНИТ ДРУГУ#cat
00:20
Просмотров 788 тыс.