aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/pages
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2021-03-18 19:51:03 +0100
committerGitHub <noreply@github.com>2021-03-18 19:51:03 +0100
commite0a7088ba0dca77f616af211a1f9e2158af502c3 (patch)
tree99b8665aaee65d0e7268ff0c72b04403182852b4 /webui/src/pages
parent501e1678b2af280300a4c35d762c54379e3142e4 (diff)
parent2c5d3345e2d3b4746619f3adf859321eadf21992 (diff)
downloadgit-bug-e0a7088ba0dca77f616af211a1f9e2158af502c3.tar.gz
Merge pull request #599 from GlancingMind/upstream-fix-color-of-green-buttons
WebUI: Fix hover-color of green buttons and caption
Diffstat (limited to 'webui/src/pages')
-rw-r--r--webui/src/pages/bug/CommentForm.tsx7
-rw-r--r--webui/src/pages/list/ListQuery.tsx6
-rw-r--r--webui/src/pages/new/NewBugPage.tsx6
3 files changed, 14 insertions, 5 deletions
diff --git a/webui/src/pages/bug/CommentForm.tsx b/webui/src/pages/bug/CommentForm.tsx
index 0b97e133..773e7d0e 100644
--- a/webui/src/pages/bug/CommentForm.tsx
+++ b/webui/src/pages/bug/CommentForm.tsx
@@ -32,10 +32,11 @@ const useStyles = makeStyles<Theme, StyleProps>((theme) => ({
},
greenButton: {
marginLeft: '8px',
- backgroundColor: '#2ea44fd9',
- color: '#fff',
+ backgroundColor: theme.palette.success.main,
+ color: theme.palette.success.contrastText,
'&:hover': {
- backgroundColor: '#2ea44f',
+ backgroundColor: theme.palette.success.dark,
+ color: theme.palette.primary.contrastText,
},
},
}));
diff --git a/webui/src/pages/list/ListQuery.tsx b/webui/src/pages/list/ListQuery.tsx
index fec7c33b..500ccf77 100644
--- a/webui/src/pages/list/ListQuery.tsx
+++ b/webui/src/pages/list/ListQuery.tsx
@@ -115,6 +115,10 @@ const useStyles = makeStyles<Theme, StylesProps>((theme) => ({
greenButton: {
backgroundColor: theme.palette.success.main,
color: theme.palette.success.contrastText,
+ '&:hover': {
+ backgroundColor: theme.palette.success.dark,
+ color: theme.palette.primary.contrastText,
+ },
},
}));
@@ -319,7 +323,7 @@ function ListQuery() {
variant="contained"
href="/new"
>
- New issue
+ New bug
</Button>
)}
</IfLoggedIn>
diff --git a/webui/src/pages/new/NewBugPage.tsx b/webui/src/pages/new/NewBugPage.tsx
index a46226ad..96afb56a 100644
--- a/webui/src/pages/new/NewBugPage.tsx
+++ b/webui/src/pages/new/NewBugPage.tsx
@@ -32,6 +32,10 @@ const useStyles = makeStyles((theme: Theme) => ({
greenButton: {
backgroundColor: theme.palette.success.main,
color: theme.palette.success.contrastText,
+ '&:hover': {
+ backgroundColor: theme.palette.success.dark,
+ color: theme.palette.primary.contrastText,
+ },
},
}));
@@ -90,7 +94,7 @@ function NewBugPage() {
type="submit"
disabled={isFormValid() ? false : true}
>
- Submit new issue
+ Submit new bug
</Button>
</div>
</form>