Skip to content

Commit

Permalink
chore: Design changes for Editor tabs (#38326)
Browse files Browse the repository at this point in the history
  • Loading branch information
hetunandu authored Dec 27, 2024
1 parent d36c2d8 commit ec51cf0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/client/src/IDE/Components/FileTab/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const Tab = styled.div`
color: var(--ads-v2-colors-text-default);
cursor: pointer;
gap: var(--ads-v2-spaces-2);
border-top: 1px solid transparent;
border-top-left-radius: var(--ads-v2-border-radius);
border-top-right-radius: var(--ads-v2-border-radius);
align-items: center;
Expand All @@ -19,14 +18,18 @@ export const Tab = styled.div`
padding-top: 6px; // to accommodate border and make icons align correctly
border-left: 1px solid transparent;
border-right: 1px solid transparent;
border-top: 2px solid transparent;
border-top: 3px solid transparent;
flex-shrink: 0;
&.active {
background: var(--ads-v2-colors-control-field-default-bg);
border-top-color: var(--ads-v2-color-bg-brand);
border-left-color: var(--ads-v2-color-border-muted);
border-right-color: var(--ads-v2-color-border-muted);
span {
font-weight: var(--ads-v2-font-weight-bold);
}
}
& > .tab-close {
Expand All @@ -48,6 +51,7 @@ export const IconContainer = styled.div`
align-items: center;
justify-content: center;
flex-shrink: 0;
img {
width: 12px;
}
Expand Down

0 comments on commit ec51cf0

Please sign in to comment.