mirror of
https://github.com/moodle/moodle.git
synced 2025-04-17 14:35:29 +02:00
MDL-70829 block_myoverview: Mark up decorative image properly
* The zero state image is purely decorative so there's no need to set a non-empty alt text for it. * The presentation role is also unnecessary for decorative image with empty alt. * Accessibility Behat tests added to cover changes
This commit is contained in:
parent
31b4e4c7a0
commit
cfcf79499b
blocks/myoverview
@ -51,8 +51,7 @@
|
||||
<div class="text-xs-center text-center mt-3" data-region="empty-message">
|
||||
<img class="empty-placeholder-image-lg mt-1"
|
||||
src="{{nocoursesimg}}"
|
||||
alt="{{{ title }}}"
|
||||
role="presentation"
|
||||
alt=""
|
||||
>
|
||||
<h5 class="h5 mt-3 mb-0">{{{ title }}}</h5>
|
||||
<p class="mt-3 mb-0">{{{ intro }}}</p>
|
||||
|
@ -70,3 +70,8 @@ Feature: Zero state on my overview block
|
||||
And "Create course" "button" should exist
|
||||
And I click on "Create course" "button"
|
||||
And I should see "Add a new course"
|
||||
|
||||
@accessibility
|
||||
Scenario: Evaluate the accessibility of the My courses (zero state)
|
||||
When I am on the "My courses" page logged in as "manager"
|
||||
Then the page should meet accessibility standards
|
||||
|
Loading…
x
Reference in New Issue
Block a user