Change focusBorderColor globaly
See original GitHub issueA clear and concise description of what the problem is. Ex. I’m always frustrated when […]
I’ve seen here i can customize input borders with the focusBorderColor
.
https://github.com/chakra-ui/chakra-ui/blob/24b9df8b73c45735579f4a9e5a16e71b3703f432/packages/chakra-ui-docs/pages/input.mdx
Is there a place in theme.js
that i should use to change these for every input instance instead of having to pass that param for each one?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:13 (6 by maintainers)
Top Results From Across the Web
Change focus border color - Material Design for Bootstrap
Expected behavior I want to be able to change the color of the input:focus globally. Actual behavior It's not possible to change the...
Read more >outline-color - CSS: Cascading Style Sheets - MDN Web Docs
Custom focus styles commonly involve making adjustments to the outline property. If the color of the outline is adjusted, it is important to ......
Read more >Chakra UI for React: change _focus borderColor not work
To change the focus border color, you have to access the focusBorderColor selector,. This can either be set in the variant you want...
Read more >outline-color | CSS-Tricks
An outline is a line that is drawn around elements — outside the border edge — that is used for accessibility or decoration...
Read more >How to Change MUI TextField's Border Color (Hover, Focus ...
How to Change MUI TextField's Border Color (Hover, Focus, Overrides, and More) · 1 Material-UI Input Border Color · 2 Change MUI TextField...
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
Stumbled upon this issue as well - I wanted to tweak focus color for inputs. Using
defaultProps
worked for me well here.With that there’s not need to create custom wrapper components. Hope it helps.
Please allow us to override global _focus property