diff --git a/styleguide/Components/SectionSubheading/SectionSubheading.css b/styleguide/Components/SectionSubheading/SectionSubheading.css index e4e7292ea7..e20d73e595 100644 --- a/styleguide/Components/SectionSubheading/SectionSubheading.css +++ b/styleguide/Components/SectionSubheading/SectionSubheading.css @@ -2,13 +2,12 @@ margin-top: 36px; margin-bottom: 18px; position: relative; + display: flex; + align-items: center; } .SectionSubheading__link { - position: absolute; - right: 100%; - padding-right: 6px; - top: 3px; + padding-left: 6px; color: var(--vkui--color_icon_secondary); opacity: 0; } diff --git a/styleguide/Components/SectionSubheading/SectionSubheading.js b/styleguide/Components/SectionSubheading/SectionSubheading.js index db374a49cd..2ad58954ba 100644 --- a/styleguide/Components/SectionSubheading/SectionSubheading.js +++ b/styleguide/Components/SectionSubheading/SectionSubheading.js @@ -9,6 +9,7 @@ export const SectionSubheading = ({ children, className, level = 2, href, ...res return ( + {children} {href && id && ( @@ -17,7 +18,6 @@ export const SectionSubheading = ({ children, className, level = 2, href, ...res )} - {children} ); };