Chakra-ui: Request to add option to easily disable Tab boxShadow on focus

Created on 6 Apr 2020  路  3Comments  路  Source: chakra-ui/chakra-ui

Problem description
I personally dont like the blue shadow/outline on the tabs - for one its blue no matter what color my tabs are and if its an accessibility thing its not being carried over to links and buttons (which I personally would not want). To turn it off involves adding _focus={{ boxShadow: 'none' }} to all Tab elements which is a bit of a pain - or building a component on top which takes away from default ease of use.
Screen Shot 2020-04-05 at 7 59 09 PM

Proposed solution
Preferred choice is no shadow - but thats just me :). Else can we explore having an option on the main Tabs component to not have shadows - something like outline={true|false} type of thing?

Most helpful comment

Hi @cyberwombat,

You might be interested in this post that explains how to achieve that:
https://medium.com/@keeganfamouss/accessibility-on-demand-with-chakra-ui-and-focus-visible-19413b1bc6f9

Let me know if you find it useful.

All 3 comments

Hi @cyberwombat,

You might be interested in this post that explains how to achieve that:
https://medium.com/@keeganfamouss/accessibility-on-demand-with-chakra-ui-and-focus-visible-19413b1bc6f9

Let me know if you find it useful.

It was to me at least, thank you!

While this seems to partially work the Textarea component uses a border-color property which I have so far not been able to undo without affecting the normal state.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nainardev picture nainardev  路  3Comments

Machinezero picture Machinezero  路  3Comments

Aneureka picture Aneureka  路  3Comments

Calvein picture Calvein  路  3Comments

gabriel-fortin picture gabriel-fortin  路  3Comments