Great video, :focus-ring was renamed to :focus-visible
@benknightguitar7 жыл бұрын
Great video, but I think the explanation for why the browser draws the outline ring around the styled button is actually a little confusing. It's not that the browser specifically draws an outline around a styled button as a special case because it's not sure what else to do. Rather, when an author decides to style a button element, it automatically disables the browser's special treatment of the button element of giving it a native OS rendering. So, now the global browser default of drawing an outline ring around any element that can receive keyboard focus applies. In other words, on Chrome for example, this rule from the user agent stylesheet takes effect once the button's native styling has been overridden: :focus { outline: -webkit-focus-ring-color auto 5px; }
@zoebijl74407 жыл бұрын
That’s one fancy laptop sticker you have there :D Excellent show. Nice to see Alice and Brian working on more poly fill stuff.
@humanhb4 жыл бұрын
what is that background sound at 1:09?
@rchrdnsh7 жыл бұрын
Cooooool, buuuuuut...will the focus ring pseudo selector allow us to restyle the focus ring so that it no longer looks like a bucket of chum?
@devvvvvvvvvvvv7 жыл бұрын
2:54 Edit: I'm so sorry Rob, but that was hilarious.
@GilGoldshlager7 жыл бұрын
Love it, I had that issue not long time ago and this will definitely gonna help not completely removing the outline, thanks! :)
@DrRobrez7 жыл бұрын
awesome! thanks
@victornpb7 жыл бұрын
isn't the polyfill missing some input types like email, url, tel, search...?
@howtopaintlike6 жыл бұрын
Well done. Excellent content!
@PawanGuptaPatna7 жыл бұрын
Very very comfortable mind
@myfrom7 жыл бұрын
Does this polyfill work with Custom Elements that use Shadow DOM?
@konstantinkkk83975 жыл бұрын
is it still important in 2019? It looks like firefox and chrome already understand when user click and do not outline buttons.
@abdullahalmamun44887 жыл бұрын
are you do a simple work to hard???
@neilosman44407 жыл бұрын
I don't like the all notion of a focus ring. i think that inclusive design should require hover and focus styles on each and every interactive component. BTW, i think the polyfill should also white list [contenteditable] elements, video/audio [controls]
@zoebijl74407 жыл бұрын
What good does a focus ring do on a button for a mouse user? Regardless, all the polyfill does is mimic default browser behaviour on custom controls.
@neilosman44407 жыл бұрын
What good does a focus ring on a button have for a mouse users? Ugliness at best. But Michiel, you should ask what good does hover styles on a button has to offer to mouse users, because that is what i was suggesting - that all interactive elements should response to user events regardless of input device (finger, mouse, keyboard, voice etc). UA should provide defaults, web designers should enhance such defaults to make them more legible and appealing. hover styles on buttons are indispensable for users with cognitive and sight impairments
@zoebijl74407 жыл бұрын
For anyone else wondering, we had this same discussion on Twitter: twitter.com/rob_dodson/status/845377176857821185