Procházet zdrojové kódy

SONAR-22168 Align PageContentFontWrapper

pull/3361/head
Ismail Cherri před 3 týdny
rodič
revize
56983ba396

+ 0
- 4
server/sonar-web/design-system/src/components/Text.tsx Zobrazit soubor

@@ -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')};


+ 25
- 0
server/sonar-web/design-system/src/sonar-aligned/components/Text.tsx Zobrazit soubor

@@ -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')};
`;

+ 1
- 0
server/sonar-web/design-system/src/sonar-aligned/components/index.ts Zobrazit soubor

@@ -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';

+ 2
- 2
server/sonar-web/src/main/js/components/icon-mappers/__tests__/__snapshots__/BranchLikeIcon-test.tsx.snap Zobrazit soubor

@@ -1,5 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`should render branch icon correctly 1`] = `"<div><span class="css-nk2far-StyledText-StyledMutedText en0eo9410"><span aria-hidden="true" class="css-lr6nas" role="img">&amp;</span></span></div>"`;
exports[`should render branch icon correctly 1`] = `"<div><span class="css-nk2far-StyledText-StyledMutedText en0eo949"><span aria-hidden="true" class="css-lr6nas" role="img">&amp;</span></span></div>"`;

exports[`should render pull request icon correctly 1`] = `"<div><span class="css-nk2far-StyledText-StyledMutedText en0eo9410"><span aria-hidden="true" class="css-lr6nas" role="img">)</span></span></div>"`;
exports[`should render pull request icon correctly 1`] = `"<div><span class="css-nk2far-StyledText-StyledMutedText en0eo949"><span aria-hidden="true" class="css-lr6nas" role="img">)</span></span></div>"`;

Načítá se…
Zrušit
Uložit