From: Fomafix Date: Mon, 18 Feb 2019 09:03:56 +0000 (+0100) Subject: Preferences: Remove href="#" from stub threshold sample link X-Git-Tag: 1.34.0-rc.0~2700^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=1e5af82d2d4ab72db823b6cb3dff3e1fdd1b3afd;p=lhc%2Fweb%2Fwiklou.git Preferences: Remove href="#" from stub threshold sample link * Prevents the sample link from being focusable and selectable via keyboard navigation. * Prevents the sample link from being clicked, which would switch to the first preferences tab and scroll to the top, unhelpfully. * Since 4f8967672d an without an href also has cursor:pointer on hover. Change-Id: I679e277d17dc679177c29d557806c9a9e91c6703 --- diff --git a/includes/preferences/DefaultPreferencesFactory.php b/includes/preferences/DefaultPreferencesFactory.php index 512a6b3829..ea78b68cf6 100644 --- a/includes/preferences/DefaultPreferencesFactory.php +++ b/includes/preferences/DefaultPreferencesFactory.php @@ -843,7 +843,7 @@ class DefaultPreferencesFactory implements PreferencesFactory { 'options' => $stubThresholdOptions, // This is not a raw HTML message; label-raw is needed for the manual 'label-raw' => $l10n->msg( 'stub-threshold' )->rawParams( - '' . + '' . $l10n->msg( 'stub-threshold-sample-link' )->parse() . '' )->parse(), ];