Feature: Broadcast focus state
See original GitHub issueHello!
I’m working with Lexical at the moment, and have a fully working editor all set up and working. However, I’ve had a request from my UX team to show a focus ring around the editor; this currently doesn’t seem possible, as the editor does not broadcast focus/blur events.
The best I can manage at the moment is an outline around the editor “inner” using the :focus-within
CSS selector, but this isn’t as clean as we’d like:
Would something like a focus hook, or an editor.isFocused
boolean be possible? Anything I could use to add/remove a class based on state would be ideal!
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How to use the focus state to improve your TV App - Bootcamp
Hover — Use when the users cursor or focus is currents located on the UI element. Only for curser based navigation. Focused —...
Read more >Focus and selection - Inputs - Human Interface Guidelines
In tvOS, focusable items can have up to five different states, each of which is visually distinct. Because focusing an item often increases...
Read more >Radio Group Example Using Roving tabindex | APG | WAI - W3C
This example implements the features of the Radio Group Design ... If the radio button with focus is not checked, changes the state...
Read more >Focus Features - Wikipedia
Focus Features LLC is an American film production and distribution company, owned by Comcast ... Features distributes independent and foreign films in the...
Read more >Using focus mode - Zoom Support
This feature gives the host and co-hosts view of all participants' videos without other participants seeing each other. This extends into screen sharing,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mattvb91 If you look at the event
target
orrelatedTarget
and seeing if that gives you any signal to help you?spot on! Thank you, appreciated