Skip to content

Commit

Permalink
Theme: Fix aria-label on passed lessons in course outline
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwoodnz committed Aug 26, 2024
1 parent 8ebdeab commit cb3ea71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-content/themes/pub/wporg-learn-2024/inc/block-hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function update_course_outline_block_add_aria( $block_content, $block ) {

$label = '';
while ( $html->next_tag( array( 'class_name' => 'wp-block-sensei-lms-course-outline-lesson' ) ) ) {
if ( $html->has_class( 'is-complete' ) ) {
if ( $html->has_class( 'is-complete' ) || $html->has_class( 'is-passed' ) ) {
$label = __( 'Completed', 'wporg-learn' );
} else if ( $html->has_class( 'is-in-progress' ) ) {
$label = __( 'In progress', 'wporg-learn' );
Expand Down

0 comments on commit cb3ea71

Please sign in to comment.