Skip to content

Commit

Permalink
Attack mechanism no longer highlighted on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
gsproston-scottlogic committed Aug 3, 2023
1 parent ca3d271 commit 64ae18f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
7 changes: 7 additions & 0 deletions frontend/src/components/DefenceBox/DefenceMechanism.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
background-color: #eef;
}

.defence-mechanism:hover {
border-color: #444;
border-width: 2px;
margin: 0px;
margin-bottom: 7px;
}

@keyframes flash-red-active {
0% {
background-color: #eef;
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/DefenceBox/DefenceMechanism.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ function DefenceMechanism(props) {
<div
className={
props.isActive
? "strategy-mechanism defence-active"
: "strategy-mechanism"
? "strategy-mechanism defence-mechanism defence-active"
: "strategy-mechanism defence-mechanism"
}
style={
props.isTriggered
Expand Down
7 changes: 0 additions & 7 deletions frontend/src/components/StrategyBox/StrategyMechanism.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@
cursor: default;
}

.strategy-mechanism:hover {
border-color: #444;
border-width: 2px;
margin: 0px;
margin-bottom: 7px;
}

.strategy-mechanism-header {
display: flex;
justify-content: space-between;
Expand Down

0 comments on commit 64ae18f

Please sign in to comment.