mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-21 10:45:20 -04:00
Force change of aria-hidden when modal shows or hides
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
bb4acb02bc
commit
61e092e8af
4 changed files with 9 additions and 0 deletions
|
@ -32,6 +32,8 @@ require('./locale')
|
|||
require('../css/cover.css')
|
||||
require('../css/site.css')
|
||||
|
||||
require('./fix-aria-hidden-for-modals')
|
||||
|
||||
const options = {
|
||||
valueNames: ['id', 'text', 'timestamp', 'fromNow', 'time', 'tags', 'pinned'],
|
||||
item: `<li class="col-xs-12 col-sm-6 col-md-6 col-lg-4">
|
||||
|
|
5
public/js/fix-aria-hidden-for-modals.js
Normal file
5
public/js/fix-aria-hidden-for-modals.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
$(document).on('shown.bs.modal', function (event) {
|
||||
$(event.target).attr('aria-hidden', 'false')
|
||||
}).on('hidden.bs.modal', function (event) {
|
||||
$(event.target).attr('aria-hidden', 'true')
|
||||
})
|
|
@ -93,6 +93,7 @@ require('../css/slide-preview.css')
|
|||
require('../css/site.css')
|
||||
|
||||
require('highlight.js/styles/github-gist.css')
|
||||
require('./fix-aria-hidden-for-modals')
|
||||
|
||||
let defaultTextHeight = 20
|
||||
let viewportMargin = 20
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue