Skip to content

Commit

Permalink
fix: #tabs css spacing specificity
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Jul 20, 2019
1 parent 0a7f884 commit 2f77961
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@ exports[`Tabs scss have to match snapshot 1`] = `
justify-content: flex-end; }
.dnb-tabs__tabs--center .dnb-tabs__tabs__tablist {
justify-content: center; }
.dnb-tabs__tabs .dnb-tablink {
.dnb-tabs__tabs .dnb-tablink,
.dnb-core-style .dnb-tabs__tabs .dnb-tablink {
position: relative;
z-index: 1;
margin: 0;
Expand All @@ -367,16 +368,19 @@ exports[`Tabs scss have to match snapshot 1`] = `
cursor: pointer;
outline: none;
border: none; }
.dnb-tabs__tabs .dnb-tablink-title {
.dnb-tabs__tabs .dnb-tablink-title,
.dnb-core-style .dnb-tabs__tabs .dnb-tablink-title {
font-size: var(--font-size-default);
white-space: nowrap; }
.dnb-tabs__tabs .dnb-tablink > span[hidden] {
.dnb-tabs__tabs .dnb-tablink > span[hidden],
.dnb-core-style .dnb-tabs__tabs .dnb-tablink > span[hidden] {
display: flex;
flex-direction: column;
height: 0;
visibility: hidden;
overflow: hidden; }
.dnb-tabs__tabs .dnb-tablink::after {
.dnb-tabs__tabs .dnb-tablink::after,
.dnb-core-style .dnb-tabs__tabs .dnb-tablink::after {
content: '';
position: absolute;
z-index: -1;
Expand Down
3 changes: 2 additions & 1 deletion packages/dnb-ui-lib/src/components/tabs/style/_tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
justify-content: center;
}

.dnb-tablink {
.dnb-tablink,
.dnb-core-style & .dnb-tablink {
position: relative;
z-index: 1;

Expand Down

0 comments on commit 2f77961

Please sign in to comment.