aboutsummaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-10-17 09:00:08 +0200
committerGravatar GitHub <noreply@github.com> 2024-10-17 09:00:08 +0200
commitd9a82e6b9e92276122c75843183d3e42f3e17559 (patch)
tree1b85df3e339d0d0184c3f35c3b1d695c1197ee60 /p
parente04f0b3493b313dd47ef9fd93de1ccf023379dc7 (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 'p')
-rw-r--r--p/scripts/main.js2
-rw-r--r--p/themes/base-theme/frss.css8
-rw-r--r--p/themes/base-theme/frss.rtl.css8
3 files changed, 1 insertions, 17 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index e11c35205..9e243a519 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -1779,7 +1779,7 @@ function refreshUnreads() {
if ((incUnreadsFeed(null, feed_id, nbUnreads - feed_unreads) || isAll) && // Update of current view?
(nbUnreads - feed_unreads > 0)) {
const newArticle = document.getElementById('new-article');
- newArticle.setAttribute('aria-hidden', 'false');
+ newArticle.removeAttribute('hidden');
newArticle.style.display = 'block';
new_articles = true;
}
diff --git a/p/themes/base-theme/frss.css b/p/themes/base-theme/frss.css
index 18e10ce3b..eef26fb0c 100644
--- a/p/themes/base-theme/frss.css
+++ b/p/themes/base-theme/frss.css
@@ -408,10 +408,6 @@ td.numeric {
}
/*=== COMPONENTS */
-/*===============*/
-[aria-hidden="true"] {
- display: none !important;
-}
/* prompt: login + register form + alert message banner */
.prompt {
@@ -1279,10 +1275,6 @@ input[type="search"] {
}
/*=== New article notification */
-#new-article {
- display: none;
-}
-
#new-article > a {
padding: calc(0.25rem + var(--frss-padding-top-bottom)) 1rem;
display: block;
diff --git a/p/themes/base-theme/frss.rtl.css b/p/themes/base-theme/frss.rtl.css
index 1d638eae3..a4e75c30c 100644
--- a/p/themes/base-theme/frss.rtl.css
+++ b/p/themes/base-theme/frss.rtl.css
@@ -408,10 +408,6 @@ td.numeric {
}
/*=== COMPONENTS */
-/*===============*/
-[aria-hidden="true"] {
- display: none !important;
-}
/* prompt: login + register form + alert message banner */
.prompt {
@@ -1279,10 +1275,6 @@ input[type="search"] {
}
/*=== New article notification */
-#new-article {
- display: none;
-}
-
#new-article > a {
padding: calc(0.25rem + var(--frss-padding-top-bottom)) 1rem;
display: block;