Skip to content

Instantly share code, notes, and snippets.

@SergSlon
Created December 24, 2015 07:11
Show Gist options
  • Save SergSlon/0ac8d4224e414a48e65b to your computer and use it in GitHub Desktop.
Save SergSlon/0ac8d4224e414a48e65b to your computer and use it in GitHub Desktop.

Revisions

  1. SergSlon created this gist Dec 24, 2015.
    13 changes: 13 additions & 0 deletions stateful_hover.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    <style>
    .button .menu-item {
    pointer-events: none;
    }

    .button:focus .menu-item {
    pointer-events: all;
    }
    </style>

    <div class="menu-item" tabindex="0">
    <a href="#">Link</a>
    </a>