diff options
| author | 2024-10-17 09:00:08 +0200 | |
|---|---|---|
| committer | 2024-10-17 09:00:08 +0200 | |
| commit | d9a82e6b9e92276122c75843183d3e42f3e17559 (patch) | |
| tree | 1b85df3e339d0d0184c3f35c3b1d695c1197ee60 /app | |
| parent | e04f0b3493b313dd47ef9fd93de1ccf023379dc7 (diff) | |
Use HTML5 hidden (#6910)
https://html.spec.whatwg.org/multipage/interaction.html#the-hidden-attribute
Remove remains of `aria-hidden` mostly not used anymore in our logic.
fix https://github.com/FreshRSS/FreshRSS/issues/6909
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/index/normal.phtml | 4 | ||||
| -rw-r--r-- | app/views/index/reader.phtml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml index 816089eb2..e2c3c9c56 100644 --- a/app/views/index/normal.phtml +++ b/app/views/index/normal.phtml @@ -38,7 +38,7 @@ $today = @strtotime('today'); <main id="stream" class="normal<?= FreshRSS_Context::userConf()->display_posts ? '' : ' hide_posts' ?>"> <h1 class="title_hidden"><?= _t('conf.reading.view.normal') ?></h1> - <div id="new-article"> + <div id="new-article" hidden="hidden"> <a href="<?= Minz_Url::display(Minz_Request::currentRequest()) ?>"><?= _t('gen.js.new_article'); /* TODO: move string in JS*/ ?></a> </div><?php $lastEntry = null; @@ -198,7 +198,7 @@ $today = @strtotime('today'); ob_end_clean(); //Discard the articles headers, as we have no articles ?> <main id="stream" class="normal"> - <div id="new-article"> + <div id="new-article" hidden="hidden"> <a href="<?= Minz_Url::display(Minz_Request::currentRequest()) ?>"><?= _t('gen.js.new_article'); /* TODO: move string in JS*/ ?></a> </div> <div class="prompt alert alert-warn"> diff --git a/app/views/index/reader.phtml b/app/views/index/reader.phtml index ccca9e50c..ae576c2e5 100644 --- a/app/views/index/reader.phtml +++ b/app/views/index/reader.phtml @@ -12,7 +12,7 @@ $lazyload = FreshRSS_Context::userConf()->lazyload; ?> <main id="stream" class="reader"> <h1 class="title_hidden"><?= _t('conf.reading.view.reader') ?></h1> - <div id="new-article"> + <div id="new-article" hidden="hidden"> <a href="<?= Minz_Url::display(Minz_Request::currentRequest()) ?>"><?= _t('gen.js.new_article'); /* TODO: move string in JS*/ ?></a> </div><?php $lastEntry = null; @@ -43,7 +43,7 @@ $lazyload = FreshRSS_Context::userConf()->lazyload; ob_end_clean(); //Discard the articles headers, as we have no articles ?> <main id="stream" class="reader"> - <div id="new-article"> + <div id="new-article" hidden="hidden"> <a href="<?= Minz_Url::display(Minz_Request::currentRequest()) ?>"><?= _t('gen.js.new_article'); /* TODO: move string in JS*/ ?></a> </div> <div class="prompt alert alert-warn"> |
