Skip to content

Commit

Permalink
[4.0][A11Y] CSS4 focus visible polyfill (#20570)
Browse files Browse the repository at this point in the history
* focus visible

* revert jquery-migrate
  • Loading branch information
dGrammatiko authored and laoneo committed May 30, 2018
1 parent 21bb801 commit e999dcd
Show file tree
Hide file tree
Showing 14 changed files with 295 additions and 408 deletions.
2 changes: 1 addition & 1 deletion administrator/templates/atum/component.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

// Add JavaScript Frameworks
HTMLHelper::_('bootstrap.framework');
HTMLHelper::_('script', 'media/vendor/flying-focus-a11y/js/flying-focus.min.js', ['version' => 'auto']);
HTMLHelper::_('script', 'vendor/focus-visible/focus-visible.min.js', ['version' => 'auto', 'relative' => true]);

// Load template CSS file
HTMLHelper::_('stylesheet', 'bootstrap.min.css', ['version' => 'auto', 'relative' => true]);
Expand Down
2 changes: 1 addition & 1 deletion administrator/templates/atum/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ html {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-ms-overflow-style: scrollbar;
-webkit-tap-highlight-color: transparent; }
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); }

@-ms-viewport {
width: device-width; }
Expand Down
2 changes: 1 addition & 1 deletion administrator/templates/atum/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

// Add JavaScript
HTMLHelper::_('bootstrap.framework');
HTMLHelper::_('script', 'media/vendor/flying-focus-a11y/js/flying-focus.min.js', ['version' => 'auto']);
HTMLHelper::_('script', 'vendor/focus-visible/focus-visible.min.js', ['version' => 'auto', 'relative' => true]);

// Load template CSS file
HTMLHelper::_('stylesheet', 'bootstrap.min.css', ['version' => 'auto', 'relative' => true]);
Expand Down
2 changes: 1 addition & 1 deletion administrator/templates/atum/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
$lang = Factory::getLanguage();

// Add JavaScript Frameworks
HTMLHelper::_('script', 'media/vendor/flying-focus-a11y/js/flying-focus.min.js', ['version' => 'auto']);
HTMLHelper::_('script', 'vendor/focus-visible/focus-visible.min.js', ['version' => 'auto', 'relative' => true]);

// Load template CSS file
HTMLHelper::_('stylesheet', 'bootstrap.min.css', ['version' => 'auto', 'relative' => true]);
Expand Down
20 changes: 0 additions & 20 deletions media/vendor/flying-focus-a11y/MIT-LICENSE.txt

This file was deleted.

105 changes: 0 additions & 105 deletions media/vendor/flying-focus-a11y/js/flying-focus.js

This file was deleted.

1 change: 0 additions & 1 deletion media/vendor/flying-focus-a11y/js/flying-focus.min.js

This file was deleted.

30 changes: 0 additions & 30 deletions media/vendor/flying-focus-a11y/scss/flying-focus.scss

This file was deleted.

5 changes: 5 additions & 0 deletions media/vendor/focus-visible/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
All Reports in this Repository are licensed by Contributors under the
[W3C Software and Document
License](http://www.w3.org/Consortium/Legal/2015/copyright-software-and-document). Contributions to
Specifications are made under the [W3C CLA](https://www.w3.org/community/about/agreements/cla/).

Loading

0 comments on commit e999dcd

Please sign in to comment.