diff options
author | Ismail Cherri <ismail.cherri@sonarsource.com> | 2024-05-08 11:37:36 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-05-08 20:02:44 +0000 |
commit | 56983ba3969f653d3939484ce843a3ce928840a9 (patch) | |
tree | 2d2faa0955628e815ed5fb2c5c7df112629e350e /server/sonar-web/design-system | |
parent | cbe566e4524c19dce6ef5aa21d6c6e6445d26761 (diff) | |
download | sonarqube-56983ba3969f653d3939484ce843a3ce928840a9.tar.gz sonarqube-56983ba3969f653d3939484ce843a3ce928840a9.zip |
SONAR-22168 Align PageContentFontWrapper
Diffstat (limited to 'server/sonar-web/design-system')
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'; |