Focus Ring! -- A11ycasts #16

  Рет қаралды 31,145

Chrome for Developers

Chrome for Developers

Күн бұрын

Пікірлер: 21
@tobias-edwards
@tobias-edwards 2 жыл бұрын
Great video, :focus-ring was renamed to :focus-visible
@benknightguitar
@benknightguitar 7 жыл бұрын
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; }
@zoebijl7440
@zoebijl7440 7 жыл бұрын
That’s one fancy laptop sticker you have there :D Excellent show. Nice to see Alice and Brian working on more poly fill stuff.
@humanhb
@humanhb 4 жыл бұрын
what is that background sound at 1:09?
@rchrdnsh
@rchrdnsh 7 жыл бұрын
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?
@devvvvvvvvvvvv
@devvvvvvvvvvvv 7 жыл бұрын
2:54 Edit: I'm so sorry Rob, but that was hilarious.
@GilGoldshlager
@GilGoldshlager 7 жыл бұрын
Love it, I had that issue not long time ago and this will definitely gonna help not completely removing the outline, thanks! :)
@DrRobrez
@DrRobrez 7 жыл бұрын
awesome! thanks
@victornpb
@victornpb 7 жыл бұрын
isn't the polyfill missing some input types like email, url, tel, search...?
@howtopaintlike
@howtopaintlike 6 жыл бұрын
Well done. Excellent content!
@PawanGuptaPatna
@PawanGuptaPatna 7 жыл бұрын
Very very comfortable mind
@myfrom
@myfrom 7 жыл бұрын
Does this polyfill work with Custom Elements that use Shadow DOM?
@konstantinkkk8397
@konstantinkkk8397 5 жыл бұрын
is it still important in 2019? It looks like firefox and chrome already understand when user click and do not outline buttons.
@abdullahalmamun4488
@abdullahalmamun4488 7 жыл бұрын
are you do a simple work to hard???
@neilosman4440
@neilosman4440 7 жыл бұрын
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]
@zoebijl7440
@zoebijl7440 7 жыл бұрын
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.
@neilosman4440
@neilosman4440 7 жыл бұрын
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
@zoebijl7440
@zoebijl7440 7 жыл бұрын
For anyone else wondering, we had this same discussion on Twitter: twitter.com/rob_dodson/status/845377176857821185
@Vizzent01
@Vizzent01 4 жыл бұрын
HOW TO DELETE IT
How to check for accessible colors -- A11ycasts #17
10:35
Chrome for Developers
Рет қаралды 52 М.
The art of labeling -- A11ycasts #12
14:07
Chrome for Developers
Рет қаралды 58 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 44 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Better Focus Styles with CSS Pseudo-Class :focus-visible
11:55
Envato Tuts+
Рет қаралды 8 М.
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4 МЛН
Roving tabindex -- A11ycasts #06
13:39
Chrome for Developers
Рет қаралды 63 М.
How to build a toggle button - A11ycasts #25
17:53
Chrome for Developers
Рет қаралды 27 М.
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,3 МЛН
How I do an accessibility check -- A11ycasts #11
12:17
Chrome for Developers
Рет қаралды 140 М.
I tried React and it Ruined My Life
1:19:10
Tsoding Daily
Рет қаралды 155 М.
The Art of Code - Dylan Beattie
1:00:49
NDC Conferences
Рет қаралды 4,7 МЛН
Clean Code - Uncle Bob / Lesson 2
1:06:01
UnityCoin
Рет қаралды 514 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН