Skip to content

Commit 5b39a19

Browse files
committed
Update tab styles with borders and active background colors
- the component misses a nice outline └── packages └── ui └── src └── components └── editor └── prompt ├── Configurations │ ├── Configurations.module.scss │ ├── Configurations.stories.tsx │ ├── Configurations.tsx │ └── index.ts └── Tabs ├── Tabs.module.scss ├── Tabs.tsx └── index.ts
1 parent 49e160c commit 5b39a19

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

‎packages/ui/src/components/editor/prompt/Tabs/Tabs.module.scss‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,25 @@
33
justify-content: space-between;
44
align-items: center;
55
gap: 14px;
6-
padding: 0 12px 0 30px;
6+
padding: 0 12px;
7+
border-bottom: 1px solid var(--cwc-border-color);
78

89
:global([data-modern-ui='true']) & {
9-
padding: 0 10px 0 28px;
10+
margin: 0 8px;
11+
padding: 0 2px;
1012
}
1113

1214
&__list {
1315
display: flex;
1416
align-items: center;
1517
gap: 4px;
18+
margin-bottom: -1px;
1619
}
1720

1821
&__tab {
1922
font-family: var(--font-family-accent);
2023
font-size: 16px;
21-
padding: 0 6px;
24+
padding: 5px 9px 0 9px;
2225
letter-spacing: 1px;
2326
display: flex;
2427
align-items: center;
@@ -27,6 +30,8 @@
2730
cursor: pointer;
2831
white-space: nowrap;
2932
user-select: none;
33+
border: 1px solid transparent;
34+
border-radius: 6px 6px 0 0;
3035

3136
&:hover {
3237
color: var(--cwc-text-color);
@@ -39,6 +44,9 @@
3944

4045
&--active {
4146
color: var(--cwc-text-color);
47+
border-color: var(--cwc-border-color);
48+
border-bottom-color: transparent;
49+
background-color: var(--vscode-sideBar-background);
4250
}
4351
}
4452

0 commit comments

Comments
 (0)