securitygre.blogg.se

Mozilla firefox focus
Mozilla firefox focus







This was the clue that I needed to determine that it definitely was something related to Firefox and not to the code or the technologies we used. So I asked some coworkers to try it as well and surprise: it was working just for one but not for the rest. The typical thing to say is "It works on my machine.", but in my case it's usually the other way around: "It doesn't work on my machine.". And it still didn't work! Instead of each link, the whole body was being focused. So I tried to navigate using the keyboard with the simplest site ever, just a plain html with a few anchor elements. I decided to begin from the most basic site I could think of and then add different things™ to find out who/what was causing/responsible for the issue. Sometimes, being a software developer is not that different from being a CSI detective. was it Tailwind's fault? Maybe Nuxt? Vue? What about PostCSS pollyfill? Because when something is failing, you need to blame someone so who was guilty here, right? But the problem was that it didn't make any sense at all to be anything of the above. Focusable elements like anchors weren't accesible by keyboard, they weren't receiving the focus as they should. It was not possible to navigate using the keyboard on Firefox. So after we finished the testing, the results were: We were performing some accessibility plus cross browser testing to check that the site we were building was accessible by keyboard in Chrome, Firefox and Safari. They say an image is worth a thousand words and I couldn't agree more so here is a GIF of Codegram's site being used with the keyboard (TAB key) and each focusable element receiving the focus clearly by the blue rectangle. (.) Focus refers to which control on the screen (an input item such as a field, checkbox, button, or link) currently receives input from the keyboard, and from the clipboard when you paste content. But first things first, what's the focus?įocus determines where keyboard events go in the page at any given moment. Thankfully I'm in a team where everyone is really involved with this topic as well, so we're all learning together.

mozilla firefox focus mozilla firefox focus

I've decided to share this tiny miny mee issue that we had in the last project that I worked on, just in case someone is facing the same problem, so they don't have to waste spend their time too.Īs you might already know, I care about accessibility a lot, but caring is not enough, you need to learn, and there's a lot to learn in this field.









Mozilla firefox focus