Add aria label for icon buttons

Those labels allow description to be associated with buttons and to be read by screen readers
remotes/angel/1.11.x
Satyan JACQUENS 8 years ago
parent 5b25f936fb
commit 7ae6411c4d
  1. 9
      main/inc/lib/course.lib.php

@ -4886,18 +4886,23 @@ class CourseManager
get_lang('GoToCourse'). ' ' .
Display::returnFontAwesomeIcon('share'),
api_get_path(WEB_COURSE_PATH) . $course_info['path'] . '/index.php',
<<<<<<< HEAD
array(
'class' => 'btn btn-default btn-sm',
'title' => get_lang('GoToCourse'),
'aria-label' => get_lang('GoToCourse')
)
);
=======
array('class' => 'btn btn-default btn-sm', 'title' => get_lang('GoToCourse'), 'aria-label' => get_lang('GoToCourse')));
>>>>>>> Add aria label for icon buttons
}
if ($access_link && in_array('unsubscribe', $access_link)) {
$my_course['unsubscribe_button'] = Display::url(
get_lang('Unreg') . ' ' .
Display::returnFontAwesomeIcon('sign-out'),
<<<<<<< HEAD
api_get_path(WEB_CODE_PATH) . 'auth/courses.php?action=unsubscribe&unsubscribe='
. $courseCode . '&sec_token=' . $stok . '&category_code=' . $categoryCode,
array(
@ -4906,6 +4911,10 @@ class CourseManager
'aria-label' => get_lang('Unreg')
)
);
=======
api_get_path(WEB_CODE_PATH) . 'auth/courses.php?action=unsubscribe&unsubscribe=' . $courseCode . '&sec_token=' . $stok . '&category_code=' . $categoryCode,
array('class' => 'btn btn-danger btn-sm', 'title' => get_lang('Unreg'), 'aria-label' => get_lang('Unreg')));
>>>>>>> Add aria label for icon buttons
}
// start buycourse validation

Loading…
Cancel
Save