-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
fix(ui): Remove uses of Orange #29360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Orange is no longer an accent color in the official design system. It should be replaced with Pink or Yellow, depending on the context.
| borderColor: theme.backgroundSecondary, | ||
| emphasis: { | ||
| areaColor: theme.orange300, | ||
| areaColor: theme.pink300, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. 👍
| function getLevelColor({level = '', theme}) { | ||
| const COLORS = { | ||
| error: theme.orange400, | ||
| error: theme.pink300, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| error: theme.pink300, | ||
| info: theme.blue300, | ||
| warning: theme.orange300, | ||
| warning: theme.yellow300, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
size-limit report
|
| }; | ||
|
|
||
| return `background-color: ${COLORS[level] || theme.orange400};`; | ||
| return `background-color: ${COLORS[level] || theme.pink300};`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default status is error, which has been updated to Pink 300.
| case BreadcrumbType.WARNING: | ||
| return { | ||
| color: 'orange400', | ||
| color: 'yellow300', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| case BreadcrumbType.SESSION: | ||
| return { | ||
| color: 'orange300', | ||
| color: 'pink300', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| border-color: ${p => p.theme.orange500}; | ||
| color: ${p => p.theme.orange500}; | ||
| border-color: ${p => p.theme.pink200}; | ||
| color: ${p => p.theme.pink300}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| border-color: ${p => p.theme.orange500}; | ||
| color: ${p => p.theme.orange500}; | ||
| border-color: ${p => p.theme.pink200}; | ||
| color: ${p => p.theme.pink300}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| path: theme.purple300, | ||
| tag: theme.blue300, | ||
| codeowners: theme.orange300, | ||
| codeowners: theme.pink300, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| font-size: ${p => p.theme.fontSizeMedium}; | ||
| font-weight: bold; | ||
| color: ${p => p.theme.orange400}; | ||
| color: ${p => p.theme.pink300}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| flex-grow: 1; | ||
| font-size: ${p => p.theme.fontSizeMedium}; | ||
| color: ${p => p.theme.orange400}; | ||
| color: ${p => p.theme.pink300}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| })} | ||
| > | ||
| <IconLock color="orange400" /> | ||
| <IconLock color="pink300" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| SkippedIndicator.defaultProps = { | ||
| isCircled: true, | ||
| color: 'orange400', | ||
| color: 'pink300', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| border-right: none; | ||
| margin: -1px 0; | ||
| color: ${p => p.theme.orange400}; | ||
| color: ${p => p.theme.pink300}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| position: absolute; | ||
| top: -5px; | ||
| color: ${p => p.theme.orange400}; | ||
| color: ${p => p.theme.pink300}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| top: -46px; | ||
| left: -46px; | ||
| border: 4px solid ${p.theme.orange300}; | ||
| border: 4px solid ${p.theme.pink200}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| alpha: { | ||
| background: `linear-gradient(90deg, ${colors.pink300}, ${colors.yellow300})`, | ||
| indicatorColor: colors.orange400, | ||
| indicatorColor: colors.pink300, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| background: colors.orange100, | ||
| iconColor: colors.orange400, | ||
| background: colors.pink100, | ||
| iconColor: colors.pink300, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| [INSTALLED]: 'success', | ||
| [NOT_INSTALLED]: 'gray300', | ||
| [PENDING]: 'orange300', | ||
| [PENDING]: 'pink300', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| const STAT_OPS = { | ||
| 'browser-extensions': {title: t('Browser Extension'), color: theme.gray200}, | ||
| cors: {title: 'CORS', color: theme.orange400}, | ||
| cors: {title: 'CORS', color: theme.yellow300}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <HomePanelHeader> | ||
| <ExternalHomeLink isCentered href={LINKS.DOCUMENTATION}> | ||
| <HomeIcon color="orange400"> | ||
| <HomeIcon color="pink300"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
priscilawebdev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left one suggestion, but it looks good to me
| green: theme.green300, | ||
| yellowDim: theme.yellow300, | ||
| yellow: theme.orange300, | ||
| yellowDim: theme.pink200, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should add a todo here? I think it would be nice if we update the names on the backend too
Hardcoding the value of orange400 into the "error" issue level. We will still remove orange from the theme object and everywhere else in the app. This is necessary because we have used orange400 to convey this error level since almost the beginning of Sentry, so changing it to a different color could confuse existing users.
Fixing lint error: "Type 'undefined' cannot be used as an index type". Since `p.level` is potentially undefined, we should use a ternary operator to provide a default cause when it is and avoid the error.


































Orange is no longer an accent color in the official design system. It should be replaced with Pink or Yellow, depending on the context. Note: this does not include the color orange in
chartPalette-- that's a different palette where orange is still useful for differentiation.See comments below for before/after screenshots.