Skip to content

Commit

Permalink
647 add on hover colour change to all buttons (#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobb-scottlogic authored Jan 17, 2024
1 parent e35d6cf commit 9a2b8e2
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/Theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

/* action buttons */
--action-button-background-colour: var(--accent-background-colour);
--action-button-background-colour-hover: #11484b;
--action-button-text-colour: var(--main-text-colour);
--action-button-disabled-background-colour: #888;
--action-button-disabled-text-colour: #111;
Expand All @@ -36,10 +37,12 @@
--level-button-border-colour: var(--accent-border-colour);
--level-button-border-colour-disabled: #aaaaaa80;
--level-button-background-colour-selected: var(--accent-background-colour);
--level-button-background-colour-hover: #11484b;

/* level banner */
--level-banner-border-colour: #bbb;
--level-banner-background-colour: #ddd;
--level-banner-background-colour-hover: #fff;
--level-banner-text-colour: #444;

/* main input */
Expand Down Expand Up @@ -101,6 +104,7 @@
--chat-alerted-text-colour: teal;
--chat-triggered-text-colour: var(--error-colour);
--chat-button-background-colour: #eee;
--chat-button-background-colour-hover: #dedede;
--chat-button-border-colour: #ccc;
--chat-button-text-colour: #444;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@
margin: 0;
font-size: 1rem;
}

.level-mission-info-banner:hover {
background-color: var(--level-banner-background-colour-hover);
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@
background-color: transparent;
color: var(--level-button-colour-disabled);
}

.level-button[aria-disabled='false']:hover {
background-color: var(--level-button-background-colour-hover);
}
4 changes: 4 additions & 0 deletions frontend/src/components/ThemedButtons/ChatButton.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
font-weight: 700;
font-size: 1rem;
}

.chat-button:hover {
background-color: var(--chat-button-background-colour-hover);
}
4 changes: 4 additions & 0 deletions frontend/src/components/ThemedButtons/ThemedButton.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,7 @@
.themed-button:focus + .themed-button-tooltip.show {
display: block;
}

.themed-button[aria-disabled='false']:hover {
background-color: var(--action-button-background-colour-hover);
}

0 comments on commit 9a2b8e2

Please sign in to comment.