Skip to content

Commit

Permalink
fix: fix #tabs focus spacing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Mar 2, 2021
1 parent 958a939 commit aa558eb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,8 @@ exports[`Tabs scss have to match snapshot 1`] = `
.dnb-tabs__tabs__tablist {
display: flex;
flex: 0 1 auto;
padding: 0 0.5rem;
margin: 0 -0.5rem;
overflow-x: auto;
overscroll-behavior: contain;
scrollbar-width: thin;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/dnb-eufemia/src/components/tabs/style/_tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
display: flex;
flex: 0 1 auto;

// Fix the active/focus border spacing
padding: 0 0.5rem;
margin: 0 -0.5rem;

&:focus {
@include fakeFocus();
}
Expand Down

0 comments on commit aa558eb

Please sign in to comment.