Skip to content

Commit

Permalink
Add fontWeight and fontFamily to compact mode (#7566)
Browse files Browse the repository at this point in the history
Добавлена поддержка compact режима для токенов fontWeight и fontFamily
  • Loading branch information
andrey-medvedev-vk authored Sep 11, 2024
1 parent a91873b commit 0693aa2
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions packages/vkui/src/components/Typography/Subhead/Subhead.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,41 @@
}

.Subhead--sizeY-compact {
font-size: var(--vkui--font_subhead--font_size--compact);
line-height: var(--vkui--font_subhead--line_height--compact);
font-size: var(
--vkui--font_subhead--font_size--compact,
var(--vkui--font_subhead--font_size--regular)
);
line-height: var(
--vkui--font_subhead--line_height--compact,
var(--vkui--font_subhead--line_height--regular)
);
font-weight: var(
--vkui--font_subhead--font_weight--compact,
var(--vkui--font_subhead--font_weight--regular)
);
font-family: var(
--vkui--font_subhead--font_family--compact,
var(--vkui--font_subhead--font_family--regular)
);
}

@media (--sizeY-compact) {
.Subhead--sizeY-none {
font-size: var(--vkui--font_subhead--font_size--compact);
line-height: var(--vkui--font_subhead--line_height--compact);
font-size: var(
--vkui--font_subhead--font_size--compact,
var(--vkui--font_subhead--font_size--regular)
);
line-height: var(
--vkui--font_subhead--line_height--compact,
var(--vkui--font_subhead--line_height--regular)
);
font-weight: var(
--vkui--font_subhead--font_weight--compact,
var(--vkui--font_subhead--font_weight--regular)
);
font-family: var(
--vkui--font_subhead--font_family--compact,
var(--vkui--font_subhead--font_family--regular)
);
}
}

0 comments on commit 0693aa2

Please sign in to comment.