Skip to content

Commit

Permalink
fixup! #tabs and #step-indicator style refactoring regarding dummy width
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Jan 22, 2019
1 parent a61ae07 commit b05457e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,13 +286,12 @@ exports[`Tabs scss have to match default theme snapshot 1`] = `
text-align: center;
color: var(--color-sea-green); }
.dnb-tabs__tabs .dnb-tablink::after {
height: 3px;
border-radius: 1.5px;
background-color: 3px solid transparent; }
.dnb-tabs__tabs .dnb-tablink:not([disabled]):hover {
background-color: var(--color-mint-green); }
background-color: var(--color-mint-green-50); }
.dnb-tabs__tabs .dnb-tablink:not([disabled]):hover::after {
height: 2px;
border-radius: 1px;
background-color: var(--color-sea-green); }
.dnb-tabs__tabs .dnb-tablink[disabled] {
cursor: not-allowed; }
Expand All @@ -303,6 +302,8 @@ exports[`Tabs scss have to match default theme snapshot 1`] = `
color: var(--color-emerald-green); }
.dnb-tabs__tabs .dnb-tablink:not([disabled]):active::after, .dnb-tabs__tabs .dnb-tablink:not([disabled]).selected::after {
height: 3px;
border-radius: 1.5px;
background-color: var(--color-sea-green); }
.dnb-tabs__tabs .dnb-tablink:not([disabled]).selected .dnb-tablink-title {
Expand Down Expand Up @@ -489,7 +490,7 @@ exports[`Tabs scss have to match snapshot 1`] = `
z-index: 1;
margin: 0;
margin-left: 4.5rem;
padding: 0.25rem 0;
padding: 0.25rem 0.125rem;
/* 1/16*4 */
background-color: transparent;
border-bottom: 1px solid transparent;
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 @@ -36,7 +36,8 @@

margin: 0;
margin-left: 4.5rem;
padding: 0.25rem 0; /* 1/16*4 */
// padding: 0.25rem 0.1875rem; /* 1/16*4 */
padding: 0.25rem 0.125rem; /* 1/16*4 */

background-color: transparent;
border-bottom: 1px solid transparent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,14 @@
color: var(--color-sea-green);
}

// make sure we alway have a height of 3
&::after {
height: 3px;
border-radius: 1.5px;
background-color: 3px solid transparent;
}

// hover
&:not([disabled]):hover {
background-color: var(--color-mint-green);
background-color: var(--color-mint-green-50);
&::after {
height: 2px;
border-radius: 1px;
background-color: var(--color-sea-green);
}
}

// disabled
Expand All @@ -54,6 +52,8 @@
color: var(--color-emerald-green);
}
&::after {
height: 3px;
border-radius: 1.5px;
background-color: var(--color-sea-green);
}
}
Expand Down

0 comments on commit b05457e

Please sign in to comment.