Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subtitle options are not shown when in focus #2949

Open
Michael-Detmers opened this issue Jan 30, 2024 · 0 comments
Open

Subtitle options are not shown when in focus #2949

Michael-Detmers opened this issue Jan 30, 2024 · 0 comments

Comments

@Michael-Detmers
Copy link

Captions are displayed in the mejs__captions-selector flyout menu. This is displayed automatically, but unfortunately hidden with the class mejs__offscreen as soon as the subtitle switch is no longer focused and the focus is set directly to a subtitle selection, for example.

Shouldn't a pure CSS solution be possible for the flyout display logic? It works as a workaround:

/* Revert offscreen-class; show flyout. */
.mejs__captions-button > button:focus-visible ~ .mejs__captions-selector, 
.mejs__captions-selector:focus-within {
  background: rgba(50,50,50,.7);
  border: 1px solid transparent;
  clip: initial;
  clip-path: unset;
  height: auto;
  width: 5.375rem;
  margin: 0 -2.6875rem 0 0;
  word-wrap: inherit;
}

Additionally:

/*  Focus has to be visible and perceivable. An outline would be even better. */
.mejs__captions-selector-input:focus-visible ~ label {
  text-decoration: underline;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant