Skip to content

Commit

Permalink
1.1.0: @media (prefers-reduced-motion)
Browse files Browse the repository at this point in the history
  • Loading branch information
hchiam committed Jun 11, 2020
1 parent 309454d commit e1ac905
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

```html
<script
src="https://cdn.jsdelivr.net/gh/hchiam/flying-focus@master/flying-focus.js"
integrity="sha384-SOrM229gWopNmq76F2faaHwMRT7swy+ai4pYHSkZiHOXc8t9FbD+vk8iKC/Ig4L7"
src="https://cdn.jsdelivr.net/gh/hchiam/flying-focus@1.1.0/flying-focus.js"
integrity="sha384-FEFayKTstGYGkfMh2hg39s77IeoLBM19BYMBaD8bOoZ2+yZHTfLWHgILLTKCCKVc"
crossorigin="anonymous"
></script>
```
Expand Down
4 changes: 2 additions & 2 deletions example-usage.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
<p><button>btn</button></p>

<script
src="https://cdn.jsdelivr.net/gh/hchiam/flying-focus@master/flying-focus.js"
integrity="sha384-SOrM229gWopNmq76F2faaHwMRT7swy+ai4pYHSkZiHOXc8t9FbD+vk8iKC/Ig4L7"
src="https://cdn.jsdelivr.net/gh/hchiam/flying-focus@1.1.0/flying-focus.js"
integrity="sha384-FEFayKTstGYGkfMh2hg39s77IeoLBM19BYMBaD8bOoZ2+yZHTfLWHgILLTKCCKVc"
crossorigin="anonymous"
></script>
</body>
Expand Down
5 changes: 5 additions & 0 deletions flying-focus.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@
visibility: visible;
z-index: 9999;
}
@media (prefers-reduced-motion) {
#flying-focus-ring-element {
display: none;
}
}
`;

const styleSheet = document.createElement("style");
Expand Down

1 comment on commit e1ac905

@hchiam
Copy link
Owner Author

@hchiam hchiam commented on e1ac905 Jun 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix #1

Please sign in to comment.