Skip to content

Commit

Permalink
fix: content list and visual tests update
Browse files Browse the repository at this point in the history
  • Loading branch information
niktverd committed Dec 28, 2024
1 parent 53d1bde commit 9d232bd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 14 additions & 14 deletions src/components/ContentList/ContentList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,14 @@ $maxSizeS: 440px;
margin-bottom: $marginIconWithoutTitleSizeL;
margin-right: $indentXXXS;
}
}
}

#{$block}__text {
@include text-size(subheader-3);
}
#{$block}__text {
@include text-size(subheader-2);

&_without-title {
@include text-size(subheader-3);
}
}
}
Expand Down Expand Up @@ -99,10 +103,14 @@ $maxSizeS: 440px;
margin-top: $marginIconWithoutTitleSizeS;
margin-bottom: $marginIconWithoutTitleSizeS;
}
}
}

#{$block}__text {
@include text-size(subheader-2);
}
#{$block}__text {
@include text-size(body-1);

&_without-title {
@include text-size(subheader-2);
}
}
}
Expand Down Expand Up @@ -135,14 +143,6 @@ $maxSizeS: 440px;
}
}

&_size_s {
@include add-specificity(&) {
#{$block}__text {
@include text-size(body-1);
}
}
}

&__icon {
display: block;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/ContentList/ContentList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const ContentList = ({list, size = 'l', qa, theme}: ContentListProps & QAProps)
)}
{text && (
<YFMWrapper
contentClassName={b('text')}
contentClassName={b('text', {'without-title': !title})}
content={text}
modifiers={{constructor: true}}
qa={qaAttributes.text}
Expand Down

0 comments on commit 9d232bd

Please sign in to comment.