Showmore: Ignore addon for screen readers
authorMichael <heluecht@pirati.ca>
Wed, 5 Feb 2020 15:47:13 +0000 (15:47 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 5 Feb 2020 15:47:13 +0000 (15:47 +0000)
showmore/showmore.php

index bfde40f..277c29c 100644 (file)
@@ -132,9 +132,9 @@ function showmore_prepare_body(\Friendica\App $a, &$hook_data)
 
        if ($found) {
                $rnd = Strings::getRandomHex(8);
-               $hook_data['html'] = '<span id="showmore-teaser-' . $rnd . '" class="showmore-teaser" style="display: block;">' . $shortened . " " .
+               $hook_data['html'] = '<span id="showmore-teaser-' . $rnd . '" class="showmore-teaser" style="display: block;" aria-hidden="true">' . $shortened . " " .
                        '<span id="showmore-wrap-' . $rnd . '" style="white-space:nowrap;" class="showmore-wrap fakelink" onclick="openClose(\'showmore-' . $rnd . '\'); openClose(\'showmore-teaser-' . $rnd . '\');" >' . DI::l10n()->t('show more') . '</span></span>' .
-                       '<div id="showmore-' . $rnd . '" class="showmore-content" style="display: none;">' . $hook_data['html'] . '</div>';
+                       '<div id="showmore-' . $rnd . '" class="showmore-content" style="display: none;" aria-hidden="false">' . $hook_data['html'] . '</div>';
        }
 }