File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from 'react';
22import propTypes from 'prop-types' ;
33
44import styled from 'styled-components' ;
5- import { createBorderStyles , createBoxStyles } from '../common' ;
5+ import { createBorderStyles , createBoxStyles , focusOutline } from '../common' ;
66import { blockSizes , padding } from '../common/system' ;
77
88const StyledTab = styled . button `
@@ -23,7 +23,16 @@ const StyledTab = styled.button`
2323 cursor: default;
2424 color: ${ ( { theme } ) => theme . text } ;
2525 user-select: none;
26-
26+ &:focus:after {
27+ content: '';
28+ position: absolute;
29+ left: 0;
30+ top: 0;
31+ width: 100%;
32+ height: 100%;
33+ ${ focusOutline }
34+ outline-offset: -6px;
35+ }
2736 ${ props =>
2837 props . selected &&
2938 `
@@ -35,7 +44,7 @@ const StyledTab = styled.button`
3544 margin-left: -8px;
3645 margin-right: -8px;
3746 ` }
38- &:after {
47+ &:before {
3948 content: '';
4049 position: absolute;
4150 width: calc(100% - 4px);
You can’t perform that action at this time.
0 commit comments