Skip to content

Commit 38e726b

Browse files
committed
ref(theme): replace simple backgroundSecondary uses with background.secondary
1 parent 75921c1 commit 38e726b

File tree

114 files changed

+180
-150
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+180
-150
lines changed

static/app/components/avatarChooser/avatarCropper.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,14 +396,26 @@ const ImageCropper = styled('div')<{resizeDirection: Position | null}>`
396396
-10px 0px;
397397
background-color: ${p => p.theme.tokens.background.primary};
398398
background-image:
399-
linear-gradient(45deg, ${p => p.theme.backgroundSecondary} 25%, rgba(0, 0, 0, 0) 25%),
399+
linear-gradient(
400+
45deg,
401+
${p => p.theme.tokens.background.secondary} 25%,
402+
rgba(0, 0, 0, 0) 25%
403+
),
400404
linear-gradient(
401405
-45deg,
402-
${p => p.theme.backgroundSecondary} 25%,
406+
${p => p.theme.tokens.background.secondary} 25%,
403407
rgba(0, 0, 0, 0) 25%
404408
),
405-
linear-gradient(45deg, rgba(0, 0, 0, 0) 75%, ${p => p.theme.backgroundSecondary} 75%),
406-
linear-gradient(-45deg, rgba(0, 0, 0, 0) 75%, ${p => p.theme.backgroundSecondary} 75%);
409+
linear-gradient(
410+
45deg,
411+
rgba(0, 0, 0, 0) 75%,
412+
${p => p.theme.tokens.background.secondary} 75%
413+
),
414+
linear-gradient(
415+
-45deg,
416+
rgba(0, 0, 0, 0) 75%,
417+
${p => p.theme.tokens.background.secondary} 75%
418+
);
407419
408420
cursor: ${p => (p.resizeDirection ? `${p.resizeDirection}-resize` : 'default')};
409421
`;

static/app/components/avatarChooser/index.tsx

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,26 @@ const AvatarPreview = styled('div')`
378378
-10px 0px;
379379
background-color: ${p => p.theme.tokens.background.primary};
380380
background-image:
381-
linear-gradient(45deg, ${p => p.theme.backgroundSecondary} 25%, rgba(0, 0, 0, 0) 25%),
381+
linear-gradient(
382+
45deg,
383+
${p => p.theme.tokens.background.secondary} 25%,
384+
rgba(0, 0, 0, 0) 25%
385+
),
382386
linear-gradient(
383387
-45deg,
384-
${p => p.theme.backgroundSecondary} 25%,
388+
${p => p.theme.tokens.background.secondary} 25%,
385389
rgba(0, 0, 0, 0) 25%
386390
),
387-
linear-gradient(45deg, rgba(0, 0, 0, 0) 75%, ${p => p.theme.backgroundSecondary} 75%),
388-
linear-gradient(-45deg, rgba(0, 0, 0, 0) 75%, ${p => p.theme.backgroundSecondary} 75%);
391+
linear-gradient(
392+
45deg,
393+
rgba(0, 0, 0, 0) 75%,
394+
${p => p.theme.tokens.background.secondary} 75%
395+
),
396+
linear-gradient(
397+
-45deg,
398+
rgba(0, 0, 0, 0) 75%,
399+
${p => p.theme.tokens.background.secondary} 75%
400+
);
389401
`;
390402

391403
const AvatarChooserBody = styled('div')`
@@ -413,7 +425,7 @@ const BlankAvatar = styled('div')`
413425
align-items: center;
414426
justify-content: center;
415427
color: ${p => p.theme.colors.gray200};
416-
background: ${p => p.theme.backgroundSecondary};
428+
background: ${p => p.theme.tokens.background.secondary};
417429
height: 90px;
418430
width: 90px;
419431
`;

static/app/components/container/negativeSpaceContainer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ const NegativeSpaceContainer = styled('div')`
99
position: relative;
1010
overflow: hidden;
1111
12-
background-color: ${p => p.theme.backgroundSecondary};
12+
background-color: ${p => p.theme.tokens.background.secondary};
1313
background-image:
1414
repeating-linear-gradient(
1515
-145deg,
1616
transparent,
1717
transparent 8px,
18-
${p => p.theme.backgroundSecondary} 8px,
19-
${p => p.theme.backgroundSecondary} 11px
18+
${p => p.theme.tokens.background.secondary} 8px,
19+
${p => p.theme.tokens.background.secondary} 11px
2020
),
2121
repeating-linear-gradient(
2222
-45deg,

static/app/components/events/autofix/autofixChanges.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ const CopyContainer = styled('div')`
155155
align-items: stretch;
156156
border: 1px solid ${p => p.theme.tokens.border.primary};
157157
border-radius: ${p => p.theme.radius.md};
158-
background: ${p => p.theme.backgroundSecondary};
158+
background: ${p => p.theme.tokens.background.secondary};
159159
max-width: 25rem;
160160
min-width: 0;
161161
flex: 1;

static/app/components/events/autofix/autofixDiff.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ const FileHeader = styled('div')`
706706
align-items: center;
707707
grid-template-columns: minmax(60px, auto) 1fr auto;
708708
gap: ${space(2)};
709-
background-color: ${p => p.theme.backgroundSecondary};
709+
background-color: ${p => p.theme.tokens.background.secondary};
710710
padding: ${space(1)} ${space(2)};
711711
cursor: pointer;
712712
`;
@@ -743,12 +743,12 @@ const DiffContainer = styled('div')<{integratedStyle?: boolean}>`
743743

744744
const HunkHeaderEmptySpace = styled('div')`
745745
grid-column: 1 / 3;
746-
background-color: ${p => p.theme.backgroundSecondary};
746+
background-color: ${p => p.theme.tokens.background.secondary};
747747
`;
748748

749749
const HunkHeaderContent = styled('div')`
750750
grid-column: 3 / -1;
751-
background-color: ${p => p.theme.backgroundSecondary};
751+
background-color: ${p => p.theme.tokens.background.secondary};
752752
color: ${p => p.theme.tokens.content.secondary};
753753
padding: ${space(0.75)} ${space(1)} ${space(0.75)} ${space(4)};
754754
white-space: pre-wrap;
@@ -759,7 +759,7 @@ const LineNumber = styled('div')<{lineType: DiffLineType}>`
759759
padding: ${space(0.25)} ${space(1)};
760760
user-select: none;
761761
762-
background-color: ${p => p.theme.backgroundSecondary};
762+
background-color: ${p => p.theme.tokens.background.secondary};
763763
color: ${p => p.theme.tokens.content.secondary};
764764
765765
${p =>

static/app/components/events/autofix/autofixHighlightPopup.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ const Container = styled(motion.div, {
720720
const InputWrapper = styled('form')`
721721
display: flex;
722722
padding: ${space(0.5)};
723-
background: ${p => p.theme.backgroundSecondary};
723+
background: ${p => p.theme.tokens.background.secondary};
724724
position: relative;
725725
`;
726726

@@ -754,7 +754,7 @@ const Header = styled('div')`
754754
align-items: center;
755755
justify-content: space-between;
756756
padding: ${space(1)} ${space(1.5)};
757-
background: ${p => p.theme.backgroundSecondary};
757+
background: ${p => p.theme.tokens.background.secondary};
758758
word-break: break-word;
759759
overflow-wrap: break-word;
760760
`;
@@ -778,7 +778,7 @@ const Arrow = styled('div')`
778778
position: absolute;
779779
width: 12px;
780780
height: 12px;
781-
background: ${p => p.theme.backgroundSecondary};
781+
background: ${p => p.theme.tokens.background.secondary};
782782
border: 1px dashed ${p => p.theme.tokens.border.primary};
783783
border-right: none;
784784
border-bottom: none;

static/app/components/events/autofix/autofixOutputStream.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ const ActiveLogWrapper = styled('div')`
408408
align-items: flex-start;
409409
justify-content: space-between;
410410
padding: ${space(1)};
411-
background: ${p => p.theme.backgroundSecondary};
411+
background: ${p => p.theme.tokens.background.secondary};
412412
gap: ${space(1)};
413413
overflow: visible;
414414
`;

static/app/components/events/autofix/v2/artifactCards.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ const TreeRow = styled('div')<{$isClickable?: boolean}>`
936936
column-gap: ${p => p.theme.space.lg};
937937
grid-template-columns: subgrid;
938938
:nth-child(odd) {
939-
background-color: ${p => p.theme.backgroundSecondary};
939+
background-color: ${p => p.theme.tokens.background.secondary};
940940
}
941941
color: ${p => p.theme.tokens.content.secondary};
942942
background-color: ${p => p.theme.background};

static/app/components/events/autofix/v2/explorerSeerDrawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ const DrawerContainer = styled('div')`
422422
display: grid;
423423
grid-template-rows: auto auto 1fr;
424424
position: relative;
425-
background: ${p => p.theme.backgroundSecondary};
425+
background: ${p => p.theme.tokens.background.secondary};
426426
`;
427427

428428
const SeerDrawerHeader = styled(DrawerHeader)`

static/app/components/events/eventStatisticalDetector/eventDifferentialFlamegraph.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ const DifferentialFlamegraphExplanationBarContainer = styled('div')`
516516
font-size: ${p => p.theme.fontSize.xs};
517517
color: ${p => p.theme.tokens.content.secondary};
518518
border-top: 1px solid ${p => p.theme.tokens.border.primary};
519-
background: ${p => p.theme.backgroundSecondary};
519+
background: ${p => p.theme.tokens.background.secondary};
520520
`;
521521

522522
function DifferentialFlamegraphLegend() {

0 commit comments

Comments
 (0)