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`
8181 .TablePaginationPage:hover,
8282 .TablePaginationPage:focus {
8383 background-color: ${ get ( 'colors.actionListItem.default.hoverBg' ) } ;
84- transition-duration: 0.1s;
8584 }
8685
8786 .TablePaginationPage[data-active='true'] {
8887 background-color: ${ get ( 'colors.accent.emphasis' ) } ;
8988 color: ${ get ( 'colors.fg.onEmphasis' ) } ;
9089 }
9190
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+
9297 .TablePaginationTruncationStep {
9398 display: flex;
9499 align-items: center;
You can’t perform that action at this time.
0 commit comments