From: Ismail Cherri Date: Wed, 8 May 2024 09:37:36 +0000 (+0200) Subject: SONAR-22168 Align PageContentFontWrapper X-Git-Tag: 10.6.0.92116~130 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=56983ba3969f653d3939484ce843a3ce928840a9;p=sonarqube.git SONAR-22168 Align PageContentFontWrapper --- 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'; diff --git a/server/sonar-web/src/main/js/components/icon-mappers/__tests__/__snapshots__/BranchLikeIcon-test.tsx.snap b/server/sonar-web/src/main/js/components/icon-mappers/__tests__/__snapshots__/BranchLikeIcon-test.tsx.snap index 54557157c7f..132266b92c9 100644 --- a/server/sonar-web/src/main/js/components/icon-mappers/__tests__/__snapshots__/BranchLikeIcon-test.tsx.snap +++ b/server/sonar-web/src/main/js/components/icon-mappers/__tests__/__snapshots__/BranchLikeIcon-test.tsx.snap @@ -1,5 +1,5 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`should render branch icon correctly 1`] = `"
"`; +exports[`should render branch icon correctly 1`] = `"
"`; -exports[`should render pull request icon correctly 1`] = `"
"`; +exports[`should render pull request icon correctly 1`] = `"
"`;