Skip to content

Commit e045895

Browse files
committed
Tabset: convert Light DOM LESS to SCSS
1 parent 31d2a10 commit e045895

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

src/less/components.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,5 @@
3636
@import 'components/popover/index';
3737
@import 'components/radio/index';
3838
@import 'components/search/index';
39-
@import 'components/tabset/index';
4039
@import 'components/text-input/index';
4140
@import 'components/textarea/index';

src/scss/components/_index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@
1616
@import "selector-strip/index";
1717
@import "toast/index";
1818
@import "table/index";
19+
@import "tabset/index";
1920
@import "tooltip/index";
2021
@import "typography/index";

src/less/components/tabset/index.less renamed to src/scss/components/tabset/_index.scss

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
//* ===== LAYOUT & APPEARANCE =============== */
1+
// ===== LAYOUT & APPEARANCE ===============
22
hx-tab {
33
border-radius: 2px 2px 0 0;
44
border: 1px solid transparent;
5-
color: @gray-700;
5+
color: $gray-700;
66
cursor: pointer;
77
font-size: 0.875rem;
88
font-weight: 500;
99

1010
&:hover {
11-
color: @cyan-500;
11+
color: $cyan-500;
1212
}
1313

1414
&:focus {
15-
color: @cyan-700;
15+
color: $cyan-700;
1616
z-index: 1; // keeps focus ring in front of adjacent tabs
1717
}
1818

1919
&[current] {
2020
background-color: inherit;
21-
border-color: @gray-300 @gray-300 transparent;
22-
color: @cyan-900;
21+
border-color: $gray-300 $gray-300 transparent;
22+
color: $cyan-900;
2323
}
2424

2525
> * + * {
@@ -31,7 +31,7 @@ hx-tabcontent {
3131
-ms-grid-columns: 1fr;
3232
-ms-grid-rows: 1fr;
3333
background-color: inherit;
34-
border-color: @gray-300 transparent;
34+
border-color: $gray-300 transparent;
3535
border-style: solid;
3636
border-width: 1px;
3737
display: -ms-grid;
@@ -94,29 +94,29 @@ hx-tabset {
9494
}
9595
}
9696

97-
//* ===== UNDEFINED =============== */
97+
// ===== UNDEFINED ===============
9898

9999
// Ensure that at least one tab/panel pair appears to be open,
100100
// before <hx-tabset> upgrades.
101101
hx-tabset:not([hx-defined]) {
102102
hx-tab:first-of-type {
103-
&:extend(hx-tab[current]);
103+
background-color: $gray-0;
104104
}
105105

106106
hx-tabpanel:first-of-type {
107-
&:extend(hx-tabpanel[open]);
107+
display: block;
108108
}
109109
}
110110

111-
//* ===== OVERRIDES =============== */
111+
// ===== OVERRIDES ===============
112112

113113
hx-tabset.beta-hxBound {
114114
hx-tab[current] {
115-
background-color: @gray-0;
115+
background-color: $gray-0;
116116
}
117117

118118
hx-tabcontent {
119-
background-color: @gray-0;
120-
border-color: @gray-300;
119+
background-color: $gray-0;
120+
border-color: $gray-300;
121121
}
122122
}

0 commit comments

Comments
 (0)