diff options
author | stanislavh <stanislav.honcharov@sonarsource.com> | 2023-10-05 10:04:28 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-10-10 20:02:44 +0000 |
commit | 047d3846d5e415786323625cd5101a9d54b04725 (patch) | |
tree | 714c5c79cd6baf2279b83e549ba590ef6a2081f0 /server/sonar-web/design-system/src/components | |
parent | a898251506b3b27006fa1cfca7c93042ebd857c0 (diff) | |
download | sonarqube-047d3846d5e415786323625cd5101a9d54b04725.tar.gz sonarqube-047d3846d5e415786323625cd5101a9d54b04725.zip |
SONAR-20547 Show new taxonomy in profile compare page
Diffstat (limited to 'server/sonar-web/design-system/src/components')
-rw-r--r-- | server/sonar-web/design-system/src/components/Text.tsx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/server/sonar-web/design-system/src/components/Text.tsx b/server/sonar-web/design-system/src/components/Text.tsx index 153fb3488c1..49bed8534a8 100644 --- a/server/sonar-web/design-system/src/components/Text.tsx +++ b/server/sonar-web/design-system/src/components/Text.tsx @@ -75,6 +75,14 @@ export function TextError({ text, className }: { className?: string; text: strin ); } +export function TextSuccess({ text, className }: Readonly<{ className?: string; text: string }>) { + return ( + <StyledTextSuccess className={className} title={text}> + {text} + </StyledTextSuccess> + ); +} + export const StyledText = styled.span` ${tw`sw-inline-block`}; ${tw`sw-truncate`}; @@ -104,6 +112,10 @@ const StyledTextError = styled(StyledText)` color: ${themeColor('danger')}; `; +const StyledTextSuccess = styled(StyledText)` + color: ${themeColor('textSuccess')}; +`; + export const DisabledText = styled.span` ${tw`sw-font-regular`}; color: ${themeColor('pageContentLight')}; |