Skip to content

Commit 6e6e5d1

Browse files
authored
feat(nextjs-insights): Chonk feature toggle (#90280)
Make feature toggle styles work with chonk UI.
1 parent 01e648c commit 6e6e5d1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

static/app/views/insights/pages/platform/nextjs/newNextjsExperienceToggle.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,16 @@ const StyledDropdownButton = styled(DropdownButton)`
103103

104104
const ToggleButton = styled(Button)`
105105
color: ${p => p.theme.white};
106-
background: linear-gradient(90deg, #3468d8, #248574);
107106
:hover {
108107
color: ${p => p.theme.white};
109108
}
109+
110+
${p =>
111+
p.theme.isChonk
112+
? `
113+
::after {
114+
background: linear-gradient(90deg, #3468d8, #248574);
115+
}`
116+
: `
117+
background: linear-gradient(90deg, #3468d8, #248574);`};
110118
`;

0 commit comments

Comments
 (0)