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

[BUG] :focus css selector has no effect #513

Closed
TimAufdemKampe opened this issue Apr 28, 2023 · 1 comment
Closed

[BUG] :focus css selector has no effect #513

TimAufdemKampe opened this issue Apr 28, 2023 · 1 comment

Comments

@TimAufdemKampe
Copy link

:focus css selector has no effect on the editor textarea.

If the textarea is ":active" the background color is red but if the textarea is ":focus" it's not yellow.

Standbox Example: https://codesandbox.io/embed/react-md-editor-custom-toolbars-forked-g9rs2o?fontsize=14&hidenavigation=1&theme=dark

@TimAufdemKampe TimAufdemKampe changed the title :focus css selector has no effect [BUG] :focus css selector has no effect Apr 28, 2023
@jaywcjlove
Copy link
Member

@TimAufdemKampe https://codesandbox.io/embed/react-md-editor-custom-toolbars-forked-dg5q5l?fontsize=14&hidenavigation=1&theme=dark

.w-md-editor-text-input:focus,
.w-md-editor-text-input:focus-visible {
  background-color: yellow !important;
  -webkit-text-fill-color: #f70000;
  outline: 2px solid red;
}

.w-md-editor-text-input:active {
  background-color: red;
}

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

2 participants