Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Historically, I really hate modals. But I just coded through them for the LAST stack tutorial and... I LOVE the result. Simple, reusable, beautiful. No external libs (besides Turbo & Stimulus), but I finally had to write some JS... a whole 50 lines 😛

10,918 görüntüleme • 2 yıl önce •via X (Twitter)

9 Yorum

@rskuipers@phpc.social profil fotoğrafı
@[email protected]2 yıl önce

We built this exact same solution as well and I love the simplicity. I also put a simple if statement for my twig extends keyword so we either extend modal layout if it's in the modal turbo frame or page layout if it isn't, making it very flexible to choose between modal and page

Zoran profil fotoğrafı
Zoran2 yıl önce

Great stuff as always @weaverryan. Thanks a lot

Bhumi profil fotoğrafı
Bhumi2 yıl önce

LAST stack is? something something Stimulus Turbo?

Sw8rl3y profil fotoğrafı
Sw8rl3y2 yıl önce

Looking forward to the symfonycast LAST stack tutorial ! Thx for your work !

deliooos profil fotoğrafı
deliooos2 yıl önce

Beautiful!! Do you have a repo ?

Ryan Weaver profil fotoğrafı
Ryan Weaver2 yıl önce

Yup - but nothing is really public yet - watch for the screencast :)

Valentin Silvestre profil fotoğrafı
Valentin Silvestre2 yıl önce

Meh. No more js 😈

Ryan Weaver profil fotoğrafı
Ryan Weaver2 yıl önce

Haha, I can’t even get away with 50 lines of js??? In all seriousness, this 50 line modal controller should be its own library after this, I think.

Ryan Weaver profil fotoğrafı
Ryan Weaver2 yıl önce

There is no doubt that modals are a minefield for accessibility. That’s something I need to learn more about

Benzer Videolar