Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS :focus doesn't work on iOS Chrome.

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #245132
    oskars
    Participant

    Hi guys! First post here :D

    I’m pulling my hair on this one. I am trying to make the li’s tappable in iOS and they work fine in Safari and Firefox but Chrome gives me a headache.

    As I’ve understood, Chrome needs a tabindex attribute to work with :focus which I have added, but I still can’t get it to work.

    I would appreciate if you could take a look at it :)

    https://codepen.io/oskarscholander/pen/kkNLrN

    / Oskar

    #245152
    Beverleyh
    Participant

    I’m not entirely sure what the problem is. I’ve tested in iOS here – Chrome, Safari and Mercury – and the item boxes can all be tapped to reveal the hidden dropdown description areas.

    BTW – li elements shouldn’t contain href attributes.

    #245154
    oskars
    Participant

    Hm… I’m running an old version of Chrome. Not sure which right now. Going to update and test again. Thanks!

    About the href in the li’s… I know… I just tested a hack I read about. Forgot to remove them. :D

    #245157
    oskars
    Participant

    Edit: Unwanted double post.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.