Finding it really hard to follow along with this, due to the colouring of the code. With things like braces and brackets and quotes having such a low contrast to the background, they're almost invisible to me (someone who's got issues with contrast definition). Please consider this when showing code on screen!
@abdusco2 жыл бұрын
Agreed. Great content, if only I could read it.
@patrickc.61832 жыл бұрын
I agree, the contrast makes it hard to read.
@GifCoDigital2 жыл бұрын
Yea pretty bad for a tutorial that claims to "build an adaptive and accessible component." lol
@lukor-tech2 жыл бұрын
The animations paus "hack" is a new to me. Thanks for that!
@ashatron6562 жыл бұрын
Love Adams content! However, I find it a lot harder to understand an already-made solution. Its much easier watching him build it from scratch.
@AdamArgyleInk2 жыл бұрын
Videos like that I put on my personal channel because they're longer and tend to reach less folks. Find them here! kzbin.info
@frederikcreemers77512 жыл бұрын
I generally don't like the "toast" pattern. i use a screen magnifier, so I only see part of the screen at a time, so I often end up missing toasts that appear on a completely different part of the screen from where I performed an action, sometimes causing confusion as to whether my click actually did anything.
@WictorHansen2 жыл бұрын
What is a better 'message' system for magnify users?
@frederikcreemers77512 жыл бұрын
@@WictorHansen I'm not sure if there is a universal best option here, but just give some clear visual feedback near the location where the user performed an action.
@TheNewton2 жыл бұрын
@@frederikcreemers7751 does the mouse cursor appear as any part of your magnification?
@viktorsoroka45102 жыл бұрын
Really cool, took me a day to figure out all the bits you did. flipToast animation really cool feature, trying without it also works fine but comparing the two you see the difference straight away. Not sure this is a sort of animation to disable though in case of reduced motion. Really slight change that improves UI significantly IMO. The video where Paul did it is a more vivid example definitely, but it is great that you covered it anyways as I did not even know about this feature before. By the way, did not encounter any problem with your editor and color scheme. I liked how you had four tabs on one screen and switched to the needed one in a second.
@devPunks2 жыл бұрын
Can probably use the sibling selector (section.toasts ~ * {...}) instead of breaking the html validator. Just have it be the first child of the .
@swampflux2 жыл бұрын
THIS IS GOOD
@TheUnknownFactor2 жыл бұрын
I really love this content! It really helps teach accessibility in an amazing way. One thing I would like to see improved though is the code editor in the video; as it is rather accessibility-unfriendly (very low contrast on a lot of characters and a font that for some characters needs more mental work to read).
@AdamArgyleInk2 жыл бұрын
the colors are chosen to boost the important bits of the code and subdue the rest. during editing, if the syntax is incorrect, these characters turn bright. so when the code is g2g, it's easier to scan for meaning as the important parts are not mixed into a mess of syntax. code is on github tho with their color choices, in case you're curious and want to read it there? 🙂
@aaeonCodes2 жыл бұрын
Excellent tutorial. 👌
@dave60122 жыл бұрын
Never could solve the dynamic height adjustment of the toast container, I have to check out the FLIP method!
@rctneil2 жыл бұрын
Can I please ask why the toasts was placed outside the ? I can't figure out the benefit to doing so? I was always told that nothing apart from the should be outside the ? and then both wrapped in ?
@AdamArgyleInk2 жыл бұрын
was placed outside the body to be in a place where it's verrry unlikely to not be on top of everything. a toast, like a modal, needs to never be covered or else it loses it's effect/value. by placing it above the body, the toasts won't compete with any body elements.
@phyllis31982 жыл бұрын
I agree there is no reason to do this especially when the toasts have fixed position. I would say it’s extremely bad form and will cause an error somewhere on some browser
@YuriyKravets29 Жыл бұрын
@@AdamArgyleInk the toast will compete with `dialog` however, so it loses it's effect when the dialog is used
@AdamArgyleInk Жыл бұрын
@@YuriyKravets29 yep, would be good to move this to popup so it can be in the :top-layer too, good call.
@asheaven1st2 жыл бұрын
Love this content.. Thank you!
@user-vd3ph6zh8q6 ай бұрын
Wait are you using css variables in your media queries? You can do that?
@KaizenCodes2 жыл бұрын
I watched this video and had to close the app for a few hours and ponder the context. The solution is absolutely great. But it didn’t seem like something that would happen in the real world, so it sort of felt like a fictional film/production. I am sure there are amazing programmers out there that would over-engineer a ‘glorified popup’ like this, but what bothered me more was the motivation behind it. So I came back to leave this comment and maybe someone else had this feeling. I think I came to the conclusion that this video wasn’t about toasts at all. It was geared towards chrome features like prefers-reduced-motion, which isn’t bad in and of itself - but it’s the angle, right? Anyway, great video, learnt a lot, hope to sip some more of the koolaid soon.
@AdamArgyleInk2 жыл бұрын
Oh, sorry it seemed that way! In my history of building apps, we almost always ended up making or using a toast component so the SPA could communicate passive messages. I definitely dont go pick chrome features and then work backwards, I'm very rooted in "what are common components found across apps" and "how to build them". Maybe it's also this video format that gives this vibe? The videos are mostly "show" where the blog posts are "tell all the details". Perhaps the "show it" centric nature of the video makes it seem fictional? anyway, thanks for sharing! good food for thought 🙂
@KaizenCodes2 жыл бұрын
@@AdamArgyleInk Hey Adam. Right, I think it’s perhaps just that it’s very unique that leaves one thinking. I just meant that a toast could be done simpler. But just because it can doesn’t mean it should right? 😅 Regardless - the CSS and other tips in there were very interesting to learn. I will approach new videos with that mindset instead. 👍
@dailymeow32832 жыл бұрын
Omg, your web dev level is 10 times me 😅
@AdamArgyleInk2 жыл бұрын
you'll get there too!
@GRA000712 жыл бұрын
Oh wow is that even legal, having elements outside the body tag like that? I feel like it would break in older browsers, surely it's not part of the spec.
@abdusco2 жыл бұрын
Any browser that's recent enough to support Animation API should have no problem rendering out-of-place elements.
@devPunks2 жыл бұрын
@@abdusco this does not mean it passes validity. See below.
@handerson1712 жыл бұрын
What VS Code theme is this?
@AdamArgyleInk2 жыл бұрын
Kung Fury
@azabroflovski2 жыл бұрын
Vite =)
@ke1vin2802 жыл бұрын
Which is the related discussion about document.timeline.currentTime? It's interesting
@AdamArgyleInk2 жыл бұрын
I havent created a discussion about it yet! it's a trick to force the renderer to not wait til the next frame to start animating, you can kick it off straight away so there's no jank or jump or visible frame between the new rendered location and the animation that wants to intro the element. def one for the back pocket that hopefully doesnt need used much, but came in very handy here for Firefox.
@AmxCsifier2 жыл бұрын
The zIndex trick is very cool but it didn't work for me for some reason! I have a header with z 999 that I don't seem to be able to display fixed content over it any ideas?
@AdamArgyleInk2 жыл бұрын
send me a link on twitter and I'll take a look!
@haojiang48822 жыл бұрын
What chrome theme is that? Looks cool.
@AdamArgyleInk2 жыл бұрын
code theme is Kung Fury, but the Chrome theme is the default!
@haojiang48822 жыл бұрын
@@AdamArgyleInk Ah, thanks man! Props to the tab group!
@DrakeXiang2 жыл бұрын
Also, the Read along link is 404
@AdamArgyleInk2 жыл бұрын
it's publishing right now, they released this episode a bit early on me! 😅
@bilygomez79512 жыл бұрын
i dotn have these rendering and animatios tabs
@AdamArgyleInk2 жыл бұрын
i move mine to the top, you definitely have them but they can be hard to find initially developer.chrome.com/docs/devtools/css/animations/
@whaisonw28652 жыл бұрын
Why are you doing all that async-in-Promise jumble in the Toast function? Couldn't you just make Toast an async function and remove lines 33, 40 and 41?
@AdamArgyleInk2 жыл бұрын
fork and PR the idea!?
@derjansan95642 жыл бұрын
First Toast!
@AdamArgyleInk2 жыл бұрын
🍞
@Skatox2 жыл бұрын
It's hard to follow with some cut of the code. It's better to keep it more time in the screen.
@DrakeXiang2 жыл бұрын
I feel like I'm a fake frontend developer...
@AdamArgyleInk2 жыл бұрын
no way! we're all just trying our best and each new time we build something we do better. keep at it!
@bumblebeegamerreal2 жыл бұрын
RIP Adblockers Its going to be phased out like the dislike button
@omsunkoradji1202 жыл бұрын
OMG, why do U use JQuery here? R U joking?
@BehruzbekOtayev2 жыл бұрын
what does this mean? @custom-media --motionOK (prefers-reduced-motion: no-preference);