diff --git a/cypress/selectors/tabs/share.js b/cypress/selectors/tabs/share.js index 34647e96e..0f2228ab9 100644 --- a/cypress/selectors/tabs/share.js +++ b/cypress/selectors/tabs/share.js @@ -13,7 +13,7 @@ module.exports = cy => ({ 'google-plus': () => cy.get(`#tab-share--channels--google-plus a`), mail: () => cy.get(`#tab-share--channels--mail a`), pinterest: () => cy.get(`#tab-share--channels--pinterest a`), - embed: () => cy.get(`#tab-share--channels--embed a`) + embed: () => cy.get(`#tab-share--channels--embed button`) }, overlay: { modal: () => cy.get('#share-tab--share-overlay'), diff --git a/package.json b/package.json index 0123e60c6..318fbea06 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "dist/" ], "dependencies": { - "@podlove/html5-audio-driver": "1.1.1", + "@podlove/html5-audio-driver": "1.1.2", "babel-polyfill": "6.26.0", "binary-search": "1.3.3", "color": "3.0.0", diff --git a/src/components/header/Info.vue b/src/components/header/Info.vue index 04d7c9ba2..fa76d6618 100644 --- a/src/components/header/Info.vue +++ b/src/components/header/Info.vue @@ -2,7 +2,7 @@
- +
@@ -14,7 +14,7 @@ {{ episode.title }} {{ episode.title }} -
{{ episode.subtitle }}
+

{{ episode.subtitle }}

@@ -62,6 +62,15 @@ }, hasDescription () { return this.episode.subtitle && this.visibleComponents.subtitle + }, + alternativeText () { + if (this.episode.poster) { + return this.$t('A11Y.ALT_EPISODE_COVER') + } + + if (this.show.poster) { + return this.$t('A11Y.ALT_SHOW_COVER') + } } }, methods: { @@ -103,7 +112,7 @@ .title { margin-top: 0; - margin-bottom: $margin / 3; + margin-bottom: $margin / 4; font-weight: inherit; font-size: 1.8em; @@ -132,7 +141,10 @@ .subtitle { overflow: hidden; - height: 1.5 * 2em; + margin: 0; + height: 2.75em; + line-height: 1.3em; + font-weight: 100; } } diff --git a/src/components/player/control-bar/ChapterBackButton.vue b/src/components/player/control-bar/ChapterBackButton.vue index 6f24f73e9..f83935738 100644 --- a/src/components/player/control-bar/ChapterBackButton.vue +++ b/src/components/player/control-bar/ChapterBackButton.vue @@ -1,11 +1,12 @@ diff --git a/src/components/tabs/audio/AudioRate.vue b/src/components/tabs/audio/AudioRate.vue index bd56874f3..2d1d3dced 100644 --- a/src/components/tabs/audio/AudioRate.vue +++ b/src/components/tabs/audio/AudioRate.vue @@ -1,17 +1,20 @@ @@ -38,6 +48,8 @@ import PlayIcon from 'icons/PlayIcon' export default { + props: ['chapter'], + data () { return { theme: this.$select('theme'), @@ -47,6 +59,7 @@ runtime } }, + computed: { remainingTime () { if (this.chapter.active) { @@ -99,8 +112,19 @@ 'width': progress + '%', 'background-color': this.theme.tabs.chapters.ghost } + }, + + a11y () { + const remaining = this.chapter.active ? this.chapter.end - this.playtime : this.chapter.end - this.chapter.start + + return { + ...this.chapter, + remaining: fromPlayerTime(remaining > 0 ? remaining : 0), + duration: fromPlayerTime(this.chapter.end - this.chapter.start) + } } }, + methods: { onMouseOut () { store.dispatch(store.actions.disableGhostMode()) @@ -120,7 +144,7 @@ }, onChapterClick (event) { - store.dispatch(store.actions.setChapter(this.index)) + store.dispatch(store.actions.setChapter(this.chapter.index - 1)) store.dispatch(store.actions.updatePlaytime(this.ghost.time)) store.dispatch(store.actions.play()) event.preventDefault() @@ -128,7 +152,7 @@ }, onChapterPlayClick (event) { - store.dispatch(store.actions.setChapter(this.index)) + store.dispatch(store.actions.setChapter(this.chapter.index - 1)) store.dispatch(store.actions.play()) event.preventDefault() return false @@ -136,8 +160,7 @@ }, components: { PlayIcon - }, - props: ['chapter', 'index'] + } } diff --git a/src/components/tabs/download/Download.vue b/src/components/tabs/download/Download.vue index 169c6da6b..224a3f22b 100644 --- a/src/components/tabs/download/Download.vue +++ b/src/components/tabs/download/Download.vue @@ -1,23 +1,26 @@ @@ -60,6 +63,13 @@ }, publicationDate () { return localeDate(this.episode.publicationDate, this.runtime.locale) + }, + a11y () { + if (this.episode.poster) { + return this.$t('A11Y.ALT_EPISODE_COVER') + } + + return this.$t('A11Y.ALT_SHOW_COVER') } }, methods: { diff --git a/src/components/tabs/info/Info.vue b/src/components/tabs/info/Info.vue index 004d55a03..19fc92b7d 100644 --- a/src/components/tabs/info/Info.vue +++ b/src/components/tabs/info/Info.vue @@ -14,7 +14,7 @@

{{ show.title }}

- +

{{ show.summary }}

@@ -22,9 +22,9 @@

{{ $t('INFO.ON_AIR') }}

-