Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

change focus color instead of opacity of video play button (#2845)

Caroline Chuongd8d8de7f8723
diff --git a/client/src/app/menu/language-chooser.component.ts b/client/src/app/menu/language-chooser.component.ts
index dd4b35f5e6..c9b775921d 100644
--- a/client/src/app/menu/language-chooser.component.ts
+++ b/client/src/app/menu/language-chooser.component.ts
@@ -20,7 +20,7 @@ export class LanguageChooserComponent {
@Inject(LOCALE_ID) private localeId: string
) {
const l = Object.keys(I18N_LOCALES)
- .map(k => ({ id: k, label: I18N_LOCALES[k] , iso: getShortLocale(k)}))
+ .map(k => ({ id: k, label: I18N_LOCALES[k] , iso: getShortLocale(k) }))
this.languages = sortBy(l, 'label')
}
diff --git a/client/src/sass/player/peertube-skin.scss b/client/src/sass/player/peertube-skin.scss
index 92923a129f..1fc744e674 100644
--- a/client/src/sass/player/peertube-skin.scss
+++ b/client/src/sass/player/peertube-skin.scss
@@ -85,9 +85,10 @@ body {
background-image: url('#{$assets-path}/player/images/big-play-button.svg');
}
- &:hover {
- opacity: 0.8;
+ &.focus-visible, &:hover {
+ background-color: var(--mainColor);
}
+
}
// Small effect when we click on the play button