-
-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace leanmodal2 with native dialog element
Adds a lot of good features that make it way more accessible like preventing outside elements from being focused, which can be difficult to do otherwise. Removes dependency on leanmodel2 so quicker page loads. TODO before ready: - Fallback gracefully in browsers that dont support it - Test in real screen readers
- Loading branch information
1 parent
7087e0f
commit 88c8463
Showing
4 changed files
with
88 additions
and
88 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -467,21 +467,21 @@ | |
|
||
<span id="translate-download" style="display:none;" hidden>Download elementary OS</span> | ||
<span id="translate-purchase" style="display:none;" hidden>Purchase elementary OS</span> | ||
<div id="download-modal" class="dialog modal"> | ||
<img alt="Download elementary OS icon" src="images/icons/apps/48/system-os-installer.svg"> | ||
<dialog id="download-modal" class="dialog" aria-labelledby="download-modal-title"> | ||
<img src="/images/icons/apps/48/system-os-installer.svg" alt=""/> | ||
<div class="content-area"> | ||
<p class="primary">Choose a Download</p> | ||
<h2 id="download-modal-title" class="dialog-title">Choose a Download</h2> | ||
<p>Download from a localized server or by magnet link. For help and more info, see the <a class="read-more" href="docs/installation" target="_blank" rel="noopener">installation guide</a></p> | ||
</div> | ||
<div class="action-area"> | ||
<a class="button clickable close-modal">Close</a> | ||
<button class="js-close-button button clickable close-modal">Close</button> | ||
<div class="linked"> | ||
<a class="button suggested-action download-link http" href="<?php echo $download_link.$config['release_filename']; ?>">Download</a> | ||
<a class="button suggested-action download-link magnet" title="Torrent Magnet Link" href="<?php echo 'magnet:?xt=urn:btih:'.$config['release_magnet'].'&dn='.$config['release_filename']; ?>&tr=https%3A%2F%2Fashrise.com%3A443%2Fphoenix%2Fannounce&tr=udp%3A%2F%2Fopen.demonii.com%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&ws=http%3A<?php echo urlencode($download_link.$config['release_filename']); ?>"><i class="fa fa-magnet"></i></a> | ||
</div> | ||
</div> | ||
</div> | ||
<a style="display:none;" class="open-modal" href="#download-modal"></a> | ||
</dialog> | ||
|
||
<!--[if lt IE 10]><script type="text/javascript" src="https://cdn.jsdelivr.net/gh/eligrey/[email protected]/classList.min.js"></script><![endif]--> | ||
<?php | ||
include $template['footer']; | ||
|