Skip to content

Commit

Permalink
fix(style): Fix less and sass to correctly generate tab--disabled class
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Nov 12, 2017
1 parent ccf9c23 commit b95891e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
16 changes: 8 additions & 8 deletions style/react-tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@
border-radius: 5px 5px 0 0;
}

.react-tabs__tab-panel {
display: none;
}

.react-tabs__tab-panel--selected {
display: block;
}

.react-tabs__tab--disabled {
color: GrayText;
cursor: default;
Expand All @@ -50,3 +42,11 @@
bottom: -5px;
background: #fff;
}

.react-tabs__tab-panel {
display: none;
}

.react-tabs__tab-panel--selected {
display: block;
}
11 changes: 6 additions & 5 deletions style/react-tabs.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
color: black;
border-radius: 5px 5px 0 0;
}

&--disabled {
color: GrayText;
cursor: default;
}

&:focus {
box-shadow: 0 0 5px hsl(208, 99%, 50%);
border-color: hsl(208, 99%, 50%);
Expand All @@ -44,10 +50,5 @@
&--selected {
display: block;
}

&--disabled {
color: GrayText;
cursor: default;
}
}
}
11 changes: 6 additions & 5 deletions style/react-tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
color: black;
border-radius: 5px 5px 0 0;
}

&--disabled {
color: GrayText;
cursor: default;
}

&:focus {
box-shadow: 0 0 5px hsl(208, 99%, 50%);
border-color: hsl(208, 99%, 50%);
Expand All @@ -44,10 +50,5 @@
&--selected {
display: block;
}

&--disabled {
color: GrayText;
cursor: default;
}
}
}

0 comments on commit b95891e

Please sign in to comment.