mirror of
https://github.com/MichaelMure/git-bug.git
synced 2025-01-06 01:44:27 +03:00
Merge pull request #599 from GlancingMind/upstream-fix-color-of-green-buttons
WebUI: Fix hover-color of green buttons and caption
This commit is contained in:
commit
e0a7088ba0
@ -43,6 +43,10 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
marginLeft: theme.spacing(1),
|
marginLeft: theme.spacing(1),
|
||||||
backgroundColor: theme.palette.success.main,
|
backgroundColor: theme.palette.success.main,
|
||||||
color: theme.palette.success.contrastText,
|
color: theme.palette.success.contrastText,
|
||||||
|
'&:hover': {
|
||||||
|
backgroundColor: theme.palette.success.dark,
|
||||||
|
color: theme.palette.primary.contrastText,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
saveButton: {
|
saveButton: {
|
||||||
marginRight: theme.spacing(1),
|
marginRight: theme.spacing(1),
|
||||||
@ -155,7 +159,7 @@ function BugTitleForm({ bug }: Props) {
|
|||||||
variant="contained"
|
variant="contained"
|
||||||
href="/new"
|
href="/new"
|
||||||
>
|
>
|
||||||
New issue
|
New bug
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
@ -57,7 +57,7 @@ function CloseBugButton({ bug, disabled }: Props) {
|
|||||||
disabled={bug.status === 'CLOSED' || disabled}
|
disabled={bug.status === 'CLOSED' || disabled}
|
||||||
startIcon={<ErrorOutlineIcon className={classes.closeIssueIcon} />}
|
startIcon={<ErrorOutlineIcon className={classes.closeIssueIcon} />}
|
||||||
>
|
>
|
||||||
Close issue
|
Close bug
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -46,7 +46,7 @@ function ReopenBugButton({ bug, disabled }: Props) {
|
|||||||
onClick={() => openBugAction()}
|
onClick={() => openBugAction()}
|
||||||
disabled={bug.status === 'OPEN' || disabled}
|
disabled={bug.status === 'OPEN' || disabled}
|
||||||
>
|
>
|
||||||
Reopen issue
|
Reopen bug
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -32,10 +32,11 @@ const useStyles = makeStyles<Theme, StyleProps>((theme) => ({
|
|||||||
},
|
},
|
||||||
greenButton: {
|
greenButton: {
|
||||||
marginLeft: '8px',
|
marginLeft: '8px',
|
||||||
backgroundColor: '#2ea44fd9',
|
backgroundColor: theme.palette.success.main,
|
||||||
color: '#fff',
|
color: theme.palette.success.contrastText,
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
backgroundColor: '#2ea44f',
|
backgroundColor: theme.palette.success.dark,
|
||||||
|
color: theme.palette.primary.contrastText,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
@ -115,6 +115,10 @@ const useStyles = makeStyles<Theme, StylesProps>((theme) => ({
|
|||||||
greenButton: {
|
greenButton: {
|
||||||
backgroundColor: theme.palette.success.main,
|
backgroundColor: theme.palette.success.main,
|
||||||
color: theme.palette.success.contrastText,
|
color: theme.palette.success.contrastText,
|
||||||
|
'&:hover': {
|
||||||
|
backgroundColor: theme.palette.success.dark,
|
||||||
|
color: theme.palette.primary.contrastText,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@ -319,7 +323,7 @@ function ListQuery() {
|
|||||||
variant="contained"
|
variant="contained"
|
||||||
href="/new"
|
href="/new"
|
||||||
>
|
>
|
||||||
New issue
|
New bug
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</IfLoggedIn>
|
</IfLoggedIn>
|
||||||
|
@ -32,6 +32,10 @@ const useStyles = makeStyles((theme: Theme) => ({
|
|||||||
greenButton: {
|
greenButton: {
|
||||||
backgroundColor: theme.palette.success.main,
|
backgroundColor: theme.palette.success.main,
|
||||||
color: theme.palette.success.contrastText,
|
color: theme.palette.success.contrastText,
|
||||||
|
'&:hover': {
|
||||||
|
backgroundColor: theme.palette.success.dark,
|
||||||
|
color: theme.palette.primary.contrastText,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@ -90,7 +94,7 @@ function NewBugPage() {
|
|||||||
type="submit"
|
type="submit"
|
||||||
disabled={isFormValid() ? false : true}
|
disabled={isFormValid() ? false : true}
|
||||||
>
|
>
|
||||||
Submit new issue
|
Submit new bug
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
Reference in New Issue
Block a user