Commit b8c2448b authored by Robert Lyon's avatar Robert Lyon
Browse files

Adding accessible-hidden text to optional friend request label (Bug #1259768)



To alert screen reader that the message field is actually optional

Change-Id: I6356ba0da98faaa93f13de2225c3d2d1ddbba98f
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent a17f0f8c
......@@ -574,6 +574,7 @@ $string['email'] = 'Email';
$string['emails'] = 'Emails';
$string['subject'] = 'Subject';
$string['message'] = 'Message';
$string['messageoptional'] = 'Message <span class="accessible-hidden">(optional)</span>';
$string['messagesent'] = 'Your message has been sent';
$string['nosendernamefound'] = 'No sender name was submitted';
$string['emailnotsent'] = 'Failed to send contact email. Error message: "%s"';
......
......@@ -52,7 +52,8 @@ $form = pieform(array(
'elements' => array(
'message' => array(
'type' => 'textarea',
'title' => get_string('message'),
'title' => get_string('messageoptional'),
'labelescaped' => true,
'cols' => 50,
'rows' => 4,
),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment