Skip to content

Commit a282f31

Browse files
committed
Bring back legacy components-tab-button class and its styles
1 parent 71d69af commit a282f31

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

packages/components/src/toolbar/style.scss

+44
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,47 @@
99

1010
flex-shrink: 0;
1111
}
12+
13+
// We should extract this to a separate component.
14+
.components-tab-button {
15+
padding: 3px;
16+
color: $dark-gray-500;
17+
height: $icon-button-size;
18+
font-weight: 500;
19+
20+
&.is-pressed,
21+
&.is-pressed:hover {
22+
color: $white;
23+
}
24+
25+
&:disabled {
26+
cursor: default;
27+
}
28+
29+
& > span {
30+
border: $border-width solid transparent;
31+
padding: 0 6px;
32+
box-sizing: content-box;
33+
height: 28px;
34+
line-height: 28px;
35+
}
36+
37+
&:hover > span,
38+
&:focus > span {
39+
color: $dark-gray-500;
40+
}
41+
42+
&:not(:disabled) {
43+
&.is-pressed > span,
44+
&:hover > span,
45+
&:focus > span {
46+
border: $border-width solid $dark-gray-500;
47+
}
48+
}
49+
50+
&.is-pressed > span,
51+
&.is-pressed:hover > span {
52+
background-color: $dark-gray-500;
53+
color: $white;
54+
}
55+
}

0 commit comments

Comments
 (0)