Skip to content

Commit b8b55e2

Browse files
authored
Merge pull request #324 from rackerlabs/surf-1290-1292
style(less): surf-1290-1292 update styles for JSX compatibility
2 parents 8d5cab7 + bcd567f commit b8b55e2

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

src/helix-ui/styles/elements/hx-tab.less

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ hx-tab {
44
border: 1px solid transparent;
55
bottom: -1px;
66
color: @gray-700;
7-
display: inline-block;
7+
display: inline-flex;
88
flex-shrink: 0;
99
font-size: 0.875rem;
1010
font-weight: 500;
1111
padding: 0.5rem 0.75rem;
1212
position: relative;
13+
z-index: 0;
1314

1415
&:hover {
1516
color: @cyan-500;
@@ -18,11 +19,16 @@ hx-tab {
1819

1920
&:active {
2021
color: @cyan-700;
22+
z-index: 1;
2123
}
2224

2325
&[current] {
2426
background-color: inherit;
2527
border-color: @gray-300 @gray-300 transparent;
2628
color: @cyan-900;
2729
}
30+
31+
> * + * {
32+
margin-left: 0.25rem;
33+
}
2834
}

src/helix-ui/styles/elements/hx-tabcontent.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ hx-tabcontent {
33
border-color: @gray-300 transparent;
44
border-style: solid;
55
border-width: 1px;
6+
flex-basis: 14rem; // 224px
7+
flex-shrink: 0;
8+
min-height: 14rem; // 224px
69
overflow: hidden;
710
}
811

src/helix-ui/styles/elements/hx-tablist.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
hx-tablist {
22
background-color: inherit;
3-
display: block;
3+
display: flex;
44
padding: 0 0.5rem;
55
}
66

0 commit comments

Comments
 (0)