You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff --git a/packages/react/src/tabs/styles.js b/packages/react/src/tabs/styles.js
index 94e04e10a..d0a53505b 100644
--- a/packages/react/src/tabs/styles.js+++ b/packages/react/src/tabs/styles.js@@ -135,6 +135,7 @@ const useTabStyle = ({
_focus: {
borderColor: getBorderColorStyleWithFallback(focusBorderColor),
color: getColorStyleWithFallback(focusColor),
+ outline: 0, // Disable the default outline to utilize our custom focus style with a border
},
_selected: {
border: 'none',
@@ -291,6 +292,7 @@ const useTabStyle = ({
px: '3x',
py: '2x',
zIndex: 1,
+ outline: 0, // Disable the default outline to utilize our custom focus style with a border
},
_selected: {
backgroundColor: getBackgroundColorStyleWithFallback(selectedBackgroundColor),
The text was updated successfully, but these errors were encountered:
cheton
changed the title
Remove outline: 0 from ButtonBase
Remove outline: 0 from ButtonBase to improve accessibility
Aug 18, 2023
cheton
changed the title
Remove outline: 0 from ButtonBase to improve accessibility
Enhancing accessibility for the outline behavior
Aug 18, 2023
cheton
changed the title
Enhancing accessibility for the outline behavior
Enhance accessibility for the outline behavior
Aug 18, 2023
cheton
changed the title
Enhance accessibility for the outline behavior
Enhance accessibility for the outline style
Aug 18, 2023
cheton
changed the title
Enhance accessibility for the outline style
Enhance accessibility with selective :focus-visible focus styles for non-pointer devices
Aug 28, 2023
cheton
changed the title
Enhance accessibility with selective :focus-visible focus styles for non-pointer devices
Improve accessibility with targeted :focus-visible focus styles for non-pointer devices
Aug 28, 2023
Enhance accessibility with selective
:focus-visible
focus styles for non-pointer devices:packages/react
packages/react-docs
Reference
https://hidde.blog/focus-visible-more-than-keyboard/
:focus-visible
should apply to interactions via keyboard or some other non-pointing device.Examples
ButtonBase
Change
outline: 0
to the following:Tab
The text was updated successfully, but these errors were encountered: