Skip to content

Commit

Permalink
New: Completion icon added to transcript button (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirsty-hames authored May 3, 2024
1 parent 817164a commit 977db60
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
24 changes: 20 additions & 4 deletions less/media.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@

// Transcript
// --------------------------------------------------
&__transcript-body-inline {
display: none;
}

// Skip to transcript button
&__skip-to-transcript {

Expand All @@ -26,6 +22,26 @@
}
}

// Transcript container
&__transcript-btn {
display: inline-flex;
align-items: center;
justify-content: center;
}

&__transcript-btn-icon {
margin-inline-start: @icon-padding / 2;
}

&.is-complete &__transcript-btn-icon .icon {
.icon-tick;
}

&__transcript-body-inline {
display: none;
}


// Cross browser bug fixes
// --------------------------------------------------
.me-plugin {
Expand Down
6 changes: 6 additions & 0 deletions templates/media.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
{{_transcript.transcriptLink}}
{{/if}}
</span>
<span class="media__transcript-btn-icon">
<span class="icon" aria-hidden="true"></span>
</span>
</button>
{{/if}}

Expand All @@ -73,6 +76,9 @@
{{_transcript.transcriptLink}}
{{/if}}
</span>
<span class="media__transcript-btn-icon">
<span class="icon" aria-hidden="true"></span>
</span>
</button>
{{/if}}

Expand Down

0 comments on commit 977db60

Please sign in to comment.