mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-15 01:16:22 +02:00
change request overview warning colors (#2565)
* Changes the colors of the status component in the change request overview page
This commit is contained in:
parent
a22d5f5a43
commit
88bdef62b3
@ -22,6 +22,13 @@ export const StyledErrorIcon = styled(Cancel)(({ theme }) => ({
|
||||
marginRight: theme.spacing(1),
|
||||
}));
|
||||
|
||||
export const StyledWarningIcon = styled(Cancel)(({ theme }) => ({
|
||||
color: theme.palette.warning.main,
|
||||
height: '35px',
|
||||
width: '35px',
|
||||
marginRight: theme.spacing(1),
|
||||
}));
|
||||
|
||||
export const StyledSuccessIcon = styled(CheckCircle)(({ theme }) => ({
|
||||
color: theme.palette.success.main,
|
||||
height: '35px',
|
||||
|
@ -8,6 +8,7 @@ import {
|
||||
StyledFlexAlignCenterBox,
|
||||
StyledSuccessIcon,
|
||||
StyledErrorIcon,
|
||||
StyledWarningIcon,
|
||||
StyledReviewTitle,
|
||||
StyledDivider,
|
||||
} from './ChangeRequestReviewStatus.styles';
|
||||
@ -68,6 +69,12 @@ export const ChangeRequestReviewStatus: FC<
|
||||
/>
|
||||
</StyledButtonContainer>
|
||||
<StyledReviewStatusContainer
|
||||
sx={{
|
||||
backgroundColor:
|
||||
changeRequest.state === 'In review'
|
||||
? theme.palette.warning.light
|
||||
: 'initial',
|
||||
}}
|
||||
border={resolveBorder(changeRequest.state, theme)}
|
||||
>
|
||||
<ResolveComponent changeRequest={changeRequest} />
|
||||
@ -143,9 +150,9 @@ const ReviewRequired = ({ minApprovals }: IReviewRequiredProps) => {
|
||||
return (
|
||||
<>
|
||||
<StyledFlexAlignCenterBox>
|
||||
<StyledErrorIcon />
|
||||
<StyledWarningIcon />
|
||||
<Box>
|
||||
<StyledReviewTitle color={theme.palette.error.main}>
|
||||
<StyledReviewTitle color={theme.palette.warning.main}>
|
||||
Review required
|
||||
</StyledReviewTitle>
|
||||
<Typography>
|
||||
@ -158,8 +165,8 @@ const ReviewRequired = ({ minApprovals }: IReviewRequiredProps) => {
|
||||
<StyledDivider />
|
||||
|
||||
<StyledFlexAlignCenterBox>
|
||||
<StyledErrorIcon />
|
||||
<StyledReviewTitle color={theme.palette.error.main}>
|
||||
<StyledWarningIcon />
|
||||
<StyledReviewTitle color={theme.palette.warning.main}>
|
||||
Apply changes is blocked
|
||||
</StyledReviewTitle>
|
||||
</StyledFlexAlignCenterBox>
|
||||
|
@ -197,8 +197,7 @@ export const ChangeRequestSidebar: VFC<IChangeRequestSidebarProps> = ({
|
||||
>
|
||||
Review your changes
|
||||
<Tooltip
|
||||
title="You can review your changes from this page.
|
||||
Needs a text to explain the process."
|
||||
title="Here you can see all the changes that you are suggesting and you can send them for review. You can still discard the changes after you sent them for review or even cancel the entire review if you need it."
|
||||
arrow
|
||||
>
|
||||
<StyledHelpOutline />
|
||||
|
Loading…
Reference in New Issue
Block a user