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

pull/2815/head
Caroline Chuong 2020-06-09 13:35:30 +02:00 committed by GitHub
parent e66883b37a
commit d8d8de7f87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View 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')
}

View 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