File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
packages/react/src/DataTable Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @primer/react ' : patch
3
+ ---
4
+
5
+ DataTable: Adds outline-offset to focus indicator on pagination buttons
Original file line number Diff line number Diff line change @@ -81,14 +81,19 @@ const StyledPagination = styled.nav`
81
81
.TablePaginationPage:hover,
82
82
.TablePaginationPage:focus {
83
83
background-color: ${ get ( 'colors.actionListItem.default.hoverBg' ) } ;
84
- transition-duration: 0.1s;
85
84
}
86
85
87
86
.TablePaginationPage[data-active='true'] {
88
87
background-color: ${ get ( 'colors.accent.emphasis' ) } ;
89
88
color: ${ get ( 'colors.fg.onEmphasis' ) } ;
90
89
}
91
90
91
+ .TablePaginationPage[data-active='true']:focus-visible {
92
+ outline: 2px solid var(--bgColor-accent-emphasis);
93
+ outline-offset: -2px;
94
+ box-shadow: inset 0 0 0 3px var(--fgColor-onEmphasis);
95
+ }
96
+
92
97
.TablePaginationTruncationStep {
93
98
display: flex;
94
99
align-items: center;
You can’t perform that action at this time.
0 commit comments