Skip to content

Commit 01eb6dc

Browse files
committed
a11y move inline focus to css
1 parent 6da4e9e commit 01eb6dc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

editor.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
UPY_VERSION = "1.0.1";
8383
</script>
8484
<script id="files-template" type="x-tmpl-mustache">
85-
<div tabindex="-1" onfocus="this.blur();" role="dialog" aria-labelledby="loadSave-modal" aria-modal="true">
85+
<div tabindex="-1" role="dialog" aria-labelledby="loadSave-modal" aria-modal="true" class="modal-div">
8686
<h2 class="modal-title"><i class="fa fa-upload"></i> <strong>{{ load-title }}</strong></h2>
8787
<div class="load-drag-target" id="load-drag-target">
8888
<input type="file" style="display: none" name="load-form-file-upload" id="file-upload-input">
@@ -137,7 +137,7 @@ <h2 class="modal-title"><i class="fa fa-download"></i> <strong>{{ files-title }}
137137
</div>
138138
</script>
139139
<script id="snippet-template" type="x-tmpl-mustache">
140-
<div tabindex="-1" onfocus="this.blur();" role="dialog" aria-labelledby="snippets-modal" aria-modal="true">
140+
<div tabindex="-1" role="dialog" aria-labelledby="snippets-modal" aria-modal="true" class="modal-div">
141141
<h2><i class="fa fa-cogs"></i> <strong>{{ title }}</strong></h2>
142142
<p>{{ description }}</p>
143143
<p>{{ instructions }}</p>

static/css/style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,9 @@ input:checked + .menu-switch-slider:before {
704704
}
705705

706706
/* Modals */
707+
.modal-div:focus {
708+
outline: 0;
709+
}
707710
.modal-title {
708711
margin: 28px 0px 22px 0px;
709712
text-transform: capitalize;

0 commit comments

Comments
 (0)