Fix styling of URLs in Group Description

This commit is contained in:
Ehren Kret
2025-12-17 16:07:20 -06:00
committed by GitHub
parent d28e3a783a
commit dffa3ed506
2 changed files with 18 additions and 10 deletions

View File

@@ -11,15 +11,6 @@
display: -webkit-box;
overflow: hidden;
user-select: text;
a {
@include mixins.light-theme {
color: variables.$color-gray-90;
}
@include mixins.dark-theme {
color: variables.$color-gray-02;
}
}
}
&__read-more {
@@ -30,3 +21,16 @@
}
}
}
.GroupDescriptionText {
a {
text-decoration: underline;
@include mixins.light-theme {
color: variables.$color-gray-90;
}
@include mixins.dark-theme {
color: variables.$color-gray-02;
}
}
}

View File

@@ -20,5 +20,9 @@ const renderNonNewLine: RenderTextCallbackType = ({ key, text }) => (
);
export function GroupDescriptionText({ text }: PropsType): JSX.Element {
return <AddNewLines text={text} renderNonNewLine={renderNonNewLine} />;
return (
<div className="GroupDescriptionText">
<AddNewLines text={text} renderNonNewLine={renderNonNewLine} />
</div>
);
}