question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request to add `_focus` to `Box`

See original GitHub issue

What problem does this feature solve?

I was converting my tailwind site to Chakra and noticed that the Box component doesnt allow you to customize focus properties.

What does the proposed API look like?

<Box _focus={{ outline: 'none' }} />

Describe alternatives you’ve considered

Currently it looks like I’ll have to use css to do this

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aaronmcadamcommented, Jul 21, 2020

Awesome, great to hear! Are there beta docs for 1.0 that I can look at? I don’t see anything on the website

The beta docs are here: https://next.chakra-ui.com/

1reaction
nahtnamcommented, Jul 21, 2020

Thank you! That’s exactly what I’m looking for. Will 1.0’s Box also have _focus and stuff like that?

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTMLElement.focus() - Web APIs | MDN
The HTMLElement.focus() method sets focus on the specified element, if it can be focused. The focused element is the element that will ...
Read more >
How can I set focus on an element in an HTML form using ...
As simple as document.getElementById('your_text_box_id').focus(); . – Teemu. Jul 6, 2013 at 7:20.
Read more >
Set focus to the text field in an input box - Microsoft Community
Set focus to the text field in an input box. Hi. I am using Word for Mac. I whant to input a hyperlink...
Read more >
Set the focus to HTML form element using JavaScript
To set focus to an HTML form element, the focus() method of JavaScript can be used. To do so, call this method on...
Read more >
Focus Box | Content Types | TerminalFour Training | Web Team
Navigate to the section (page) where you wish to add the focus box, ... Click 'Add content' and select 'Focus Box' from the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found