Skip to content

Commit 81fcc34

Browse files
authored
Merge pull request #820 from BY00565233/SURF-2160
docs(tabset): implement and document attrs and vars
2 parents b1a1e98 + 1b9f843 commit 81fcc34

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/scss/components/tabset/_index.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
hx-tab {
33
border-radius: 2px 2px 0 0;
44
border: 1px solid transparent;
5-
color: $gray-700;
5+
color: var(--hxTabset-hxTab-color, $gray-700);
66
cursor: pointer;
77
font-size: 0.875rem;
88
font-weight: 500;
99

1010
&:hover {
11-
color: $gray-950;
11+
color: var(--hxTabset-hxTab-hover-color, $gray-950);
1212
}
1313

1414
&:focus {
@@ -17,8 +17,8 @@ hx-tab {
1717

1818
&[current] {
1919
background-color: inherit;
20-
border-bottom: 2px solid $teal-300;
21-
color: $gray-950;
20+
border-bottom: 2px solid var(--hxTabset-hxTab-current-border-bottom, $teal-300);
21+
color: var(--hxTabset-hxTab-current-color, $gray-950);
2222
font-weight: 600;
2323
outline: none;
2424
}
@@ -101,7 +101,7 @@ hx-tabset {
101101
// before <hx-tabset> upgrades.
102102
hx-tabset:not([hx-defined]) {
103103
hx-tab:first-of-type {
104-
background-color: $gray-0;
104+
background-color: var(--hxTabset-hxTab-first-of-type-bgcolor, $gray-0);
105105
}
106106

107107
hx-tabpanel:first-of-type {
@@ -113,11 +113,11 @@ hx-tabset:not([hx-defined]) {
113113

114114
hx-tabset.beta-hxBound {
115115
hx-tab[current] {
116-
background-color: $gray-0;
116+
background-color: var(--hxTabset-hxTab-current-bgcolor, $gray-0);
117117
}
118118

119119
hx-tabcontent {
120-
background-color: $gray-0;
121-
border-color: $gray-300;
120+
background-color: var(--hxTabset-hxTabcontent-bgcolor, $gray-0);
121+
border-color: var(--hxTabset-hxTabcontent-border-color, $gray-300);
122122
}
123123
}

0 commit comments

Comments
 (0)