change focus color instead of opacity of video play button (#2845)
authorCaroline Chuong <caroline.chuong@octo.com>
Tue, 9 Jun 2020 11:35:30 +0000 (13:35 +0200)
committerGitHub <noreply@github.com>
Tue, 9 Jun 2020 11:35:30 +0000 (13:35 +0200)
client/src/app/menu/language-chooser.component.ts
client/src/sass/player/peertube-skin.scss

index dd4b35f5e6dbf4b783cd9eeae62f4d52fffe81ed..c9b775921d18346f8a70c5e8756052806e5b21db 100644 (file)
@@ -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')
   }
index 92923a129f437c03d96d538ee5a2e29acb7efe26..1fc744e674ad783c556cb33416ae461e87829448 100644 (file)
@@ -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