Skip to content

Commit ea39b0d

Browse files
authored
style(hadron-react-components): Update tabs to LeafyGreen tabs (#2308)
1 parent 413a7be commit ea39b0d

File tree

16 files changed

+144
-405
lines changed

16 files changed

+144
-405
lines changed

package-lock.json

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/compass-collection/src/assets/less/compass/components/_tab-nav-bar.less

Lines changed: 8 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,14 @@
11
.tab-nav-bar {
2-
3-
&-is-light-theme {
4-
flex-grow: 1;
5-
flex-shrink: 1;
6-
flex-basis: auto;
7-
display: flex;
8-
flex-direction: column;
9-
align-items: stretch;
10-
}
11-
12-
&-header {
13-
background-color: @pw;
14-
flex-grow: 0;
15-
flex-shrink: 0;
16-
flex-basis: 38px;
17-
display: flex;
18-
flex-direction: row;
19-
justify-content: flex-start;
20-
align-items: flex-end;
21-
position: relative;
22-
margin: 0 15px;
23-
border-bottom: 4px solid @gray10;
24-
}
2+
flex-grow: 1;
3+
flex-shrink: 1;
4+
flex-basis: auto;
5+
display: flex;
6+
flex-direction: column;
7+
align-items: stretch;
8+
overflow: auto;
259

2610
&-tabs {
27-
display: flex;
28-
justify-content: flex-end;
29-
align-self: flex-end;
30-
margin-bottom: 0;
31-
position: absolute;
32-
top: 9px;
33-
margin-left: 0px;
34-
padding-left: 0px;
35-
}
36-
37-
&-tab {
38-
height: 29px;
39-
width: 130px;
40-
margin-right: 5px;
41-
font-size: 13px;
42-
display: flex;
43-
justify-content: center;
44-
cursor: pointer;
45-
margin-bottom: 0;
46-
color: @gray9;
47-
border-bottom: 4px solid @gray10;
48-
}
49-
50-
&-tab:hover {
51-
color: @gray1;
52-
}
53-
54-
&-link {
55-
margin: auto;
56-
font-size: 14px;
57-
font-weight: bold;
58-
padding-bottom: 5px;
59-
}
60-
61-
&-link:hover, &-link:active, &-link:focus {
62-
text-decoration: none;
63-
color: @gray1;
64-
}
65-
66-
&-is-selected {
67-
cursor: default;
68-
border-bottom-color: @green2;
69-
.tab-nav-bar-link {
70-
color: @gray1;
71-
}
11+
padding: 0 10px;
7212
}
7313
}
7414

packages/compass-collection/src/components/collection-header/collection-header.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
.collection-header {
44
margin-top: 15px;
5+
margin-bottom: 5px;
56

67
&-title {
78
font-size: 24px;

packages/compass-collection/src/components/collection/collection.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class Collection extends Component {
8080
pipeline={this.props.pipeline}
8181
sourceName={this.props.sourceName} />
8282
<TabNavBar
83-
theme="light"
83+
aria-label="Collection Tabs"
8484
tabs={this.props.tabs}
8585
views={this.props.views}
8686
mountAllViews

packages/compass-connect/src/assets/less/compass/components/_tab-nav-bar.less

Lines changed: 8 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,14 @@
11
.tab-nav-bar {
2-
3-
&-is-light-theme {
4-
flex-grow: 1;
5-
flex-shrink: 1;
6-
flex-basis: auto;
7-
display: flex;
8-
flex-direction: column;
9-
align-items: stretch;
10-
}
11-
12-
&-header {
13-
background-color: @pw;
14-
flex-grow: 0;
15-
flex-shrink: 0;
16-
flex-basis: 38px;
17-
display: flex;
18-
flex-direction: row;
19-
justify-content: flex-start;
20-
align-items: flex-end;
21-
position: relative;
22-
margin: 0 15px;
23-
border-bottom: 4px solid @gray10;
24-
}
2+
flex-grow: 1;
3+
flex-shrink: 1;
4+
flex-basis: auto;
5+
display: flex;
6+
flex-direction: column;
7+
align-items: stretch;
8+
overflow: auto;
259

2610
&-tabs {
27-
display: flex;
28-
justify-content: flex-end;
29-
align-self: flex-end;
30-
margin-bottom: 0;
31-
position: absolute;
32-
top: 9px;
33-
margin-left: 0px;
34-
padding-left: 0px;
35-
}
36-
37-
&-tab {
38-
height: 29px;
39-
width: 130px;
40-
margin-right: 5px;
41-
font-size: 13px;
42-
display: flex;
43-
justify-content: center;
44-
cursor: pointer;
45-
margin-bottom: 0;
46-
color: @gray9;
47-
border-bottom: 4px solid @gray10;
48-
}
49-
50-
&-tab:hover {
51-
color: @gray1;
52-
}
53-
54-
&-link {
55-
margin: auto;
56-
font-size: 14px;
57-
font-weight: bold;
58-
padding-bottom: 5px;
59-
}
60-
61-
&-link:hover, &-link:active, &-link:focus {
62-
text-decoration: none;
63-
color: @gray1;
64-
}
65-
66-
&-is-selected {
67-
cursor: default;
68-
border-bottom-color: @green2;
69-
.tab-nav-bar-link {
70-
color: @gray1;
71-
}
11+
padding: 0 10px;
7212
}
7313
}
7414

packages/compass-database/src/components/database/database.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Database extends Component {
5252
return (
5353
<div className={classnames(styles.database)}>
5454
<TabNavBar
55-
theme="light"
55+
aria-label="Database Tabs"
5656
tabs={this.tabs}
5757
views={this.views}
5858
mountAllViews={false}

packages/compass-deployment-awareness/src/assets/less/compass/components/_tab-nav-bar.less

Lines changed: 8 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,14 @@
11
.tab-nav-bar {
2-
3-
&-is-light-theme {
4-
flex-grow: 1;
5-
flex-shrink: 1;
6-
flex-basis: auto;
7-
display: flex;
8-
flex-direction: column;
9-
align-items: stretch;
10-
}
11-
12-
&-header {
13-
background-color: @pw;
14-
flex-grow: 0;
15-
flex-shrink: 0;
16-
flex-basis: 38px;
17-
display: flex;
18-
flex-direction: row;
19-
justify-content: flex-start;
20-
align-items: flex-end;
21-
position: relative;
22-
margin: 0 15px;
23-
border-bottom: 4px solid @gray10;
24-
}
2+
flex-grow: 1;
3+
flex-shrink: 1;
4+
flex-basis: auto;
5+
display: flex;
6+
flex-direction: column;
7+
align-items: stretch;
8+
overflow: auto;
259

2610
&-tabs {
27-
display: flex;
28-
justify-content: flex-end;
29-
align-self: flex-end;
30-
margin-bottom: 0;
31-
position: absolute;
32-
top: 9px;
33-
margin-left: 0px;
34-
padding-left: 0px;
35-
}
36-
37-
&-tab {
38-
height: 29px;
39-
width: 130px;
40-
margin-right: 5px;
41-
font-size: 13px;
42-
display: flex;
43-
justify-content: center;
44-
cursor: pointer;
45-
margin-bottom: 0;
46-
color: @gray9;
47-
border-bottom: 4px solid @gray10;
48-
}
49-
50-
&-tab:hover {
51-
color: @gray1;
52-
}
53-
54-
&-link {
55-
margin: auto;
56-
font-size: 14px;
57-
font-weight: bold;
58-
padding-bottom: 5px;
59-
}
60-
61-
&-link:hover, &-link:active, &-link:focus {
62-
text-decoration: none;
63-
color: @gray1;
64-
}
65-
66-
&-is-selected {
67-
cursor: default;
68-
border-bottom-color: @green2;
69-
.tab-nav-bar-link {
70-
color: @gray1;
71-
}
11+
padding: 0 10px;
7212
}
7313
}
7414

0 commit comments

Comments
 (0)