aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/design-system
diff options
context:
space:
mode:
authorIsmail Cherri <ismail.cherri@sonarsource.com>2024-05-08 11:37:36 +0200
committersonartech <sonartech@sonarsource.com>2024-05-08 20:02:44 +0000
commit56983ba3969f653d3939484ce843a3ce928840a9 (patch)
tree2d2faa0955628e815ed5fb2c5c7df112629e350e /server/sonar-web/design-system
parentcbe566e4524c19dce6ef5aa21d6c6e6445d26761 (diff)
downloadsonarqube-56983ba3969f653d3939484ce843a3ce928840a9.tar.gz
sonarqube-56983ba3969f653d3939484ce843a3ce928840a9.zip
SONAR-22168 Align PageContentFontWrapper
Diffstat (limited to 'server/sonar-web/design-system')
-rw-r--r--server/sonar-web/design-system/src/components/Text.tsx4
-rw-r--r--server/sonar-web/design-system/src/sonar-aligned/components/Text.tsx25
-rw-r--r--server/sonar-web/design-system/src/sonar-aligned/components/index.ts1
3 files changed, 26 insertions, 4 deletions
diff --git a/server/sonar-web/design-system/src/components/Text.tsx b/server/sonar-web/design-system/src/components/Text.tsx
index 22821cd98ca..1170d99bf56 100644
--- a/server/sonar-web/design-system/src/components/Text.tsx
+++ b/server/sonar-web/design-system/src/components/Text.tsx
@@ -149,10 +149,6 @@ export const LightPrimary = styled.span`
color: ${themeContrast('primaryLight')};
`;
-export const PageContentFontWrapper = styled.div`
- color: ${themeColor('pageContent')};
-`;
-
export const Highlight = styled.strong`
color: ${themeColor('pageContentDark')};
diff --git a/server/sonar-web/design-system/src/sonar-aligned/components/Text.tsx b/server/sonar-web/design-system/src/sonar-aligned/components/Text.tsx
new file mode 100644
index 00000000000..40acc49753f
--- /dev/null
+++ b/server/sonar-web/design-system/src/sonar-aligned/components/Text.tsx
@@ -0,0 +1,25 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2024 SonarSource SA
+ * mailto:info AT sonarsource DOT com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+import styled from '@emotion/styled';
+import { themeColor } from '../../helpers/theme';
+
+export const PageContentFontWrapper = styled.div`
+ color: ${themeColor('pageContent')};
+`;
diff --git a/server/sonar-web/design-system/src/sonar-aligned/components/index.ts b/server/sonar-web/design-system/src/sonar-aligned/components/index.ts
index 9b86ae7d91a..5a8be386785 100644
--- a/server/sonar-web/design-system/src/sonar-aligned/components/index.ts
+++ b/server/sonar-web/design-system/src/sonar-aligned/components/index.ts
@@ -22,6 +22,7 @@ export * from './Card';
export { DismissableFlagMessage, FlagMessage } from './FlagMessage';
export * from './MetricsRatingBadge';
export * from './Table';
+export * from './Text';
export * from './ToggleButton';
export * from './buttons';
export * from './input';