Skip to content

Commit

Permalink
feat(Tabs,TabsItem): tokenized
Browse files Browse the repository at this point in the history
  • Loading branch information
inomdzhon committed Jul 4, 2022
1 parent 3421964 commit 98d3156
Show file tree
Hide file tree
Showing 10 changed files with 624 additions and 495 deletions.
5 changes: 0 additions & 5 deletions src/components/Badge/Badge.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,3 @@
var(--vkui--color_icon_negative)
);
}

.TabsItem__after .Badge {
transform: translateY(-2px);
margin-left: 6px;
}
27 changes: 27 additions & 0 deletions src/components/Counter/Counter.css
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,30 @@
var(--vkui--color_background_positive)
);
}

/**
* CMP:
* TabsItem
*/
.TabsItem .Counter--secondary {
background-color: var(--panel_tab_inactive_text);
color: var(--white);
}

.TabsItem--selected .Counter--secondary {
background-color: var(--panel_tab_active_text);
color: var(--panel_tab_active_background);
}

/* TODO v5.0.0 Удалить mode="segmented" */
/* [Начало] */
.TabsItem--ios.TabsItem--segmented .Counter--secondary {
background-color: var(--segmented_control_tint);
color: var(--background_content);
}

.TabsItem--ios.TabsItem--segmented.TabsItem--selected .Counter--secondary {
background-color: var(--background_content);
color: var(--segmented_control_tint);
}
/* [Конец] */
23 changes: 23 additions & 0 deletions src/components/HorizontalScroll/HorizontalScroll.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,26 @@
.HorizontalScroll__in-wrapper {
transform: translateX(-8px);
}

/**
* CMP:
* Tabs
*/
.Tabs .HorizontalScroll {
min-width: 100%;
}

.Tabs__in .HorizontalScroll__in-wrapper {
display: flex;
align-items: stretch;
}

/* TODO v5.0.0 новая адаптивность */
.Tabs--sizeX-compact.Tabs--withGaps .HorizontalScroll__in-wrapper::after,
.Tabs--sizeX-compact.Tabs--withGaps .HorizontalScroll__in-wrapper::before {
display: block;
width: 8px;
flex-shrink: 0;
height: 1px;
content: "";
}
Loading

0 comments on commit 98d3156

Please sign in to comment.