Skip to content

Commit 9f6817a

Browse files
authored
Merge pull request #26 from oslabs-beta/jon-canvasRemove
Update Delete Icon & CSS
2 parents a7a4b38 + db7e233 commit 9f6817a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

app/src/components/main/DeleteButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useDispatch, useSelector } from 'react-redux';
44
import { deleteChild } from '../../redux/reducers/slice/appStateSlice';
55
import { RootState } from '../../redux/store';
66
import { emitEvent } from '../../helperFunctions/socket';
7-
import { Delete } from '@mui/icons-material';
7+
import { Clear } from '@mui/icons-material';
88

99
function DeleteButton({ id, name, onClickHandler }: DeleteButtons) {
1010
const contextParam = useSelector((store: RootState) => store.contextSlice);
@@ -38,7 +38,7 @@ function DeleteButton({ id, name, onClickHandler }: DeleteButtons) {
3838
deleteHTMLtype(id);
3939
}}
4040
>
41-
<Delete className="deleteIcon" />
41+
<Clear className="deleteIcon" />
4242
</button>
4343
</div>
4444
);

app/src/public/styles/style.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -718,13 +718,11 @@ CANVAS WINDOW
718718

719719
.delete-button-empty {
720720
float: right;
721-
background-color: rgba(0, 0, 0, 0.2);
722-
border-radius: 15px;
721+
background-color: rgba(0, 0, 0, 0);
722+
border-radius: 50%;
723723
border: none;
724724
font-size: 15px;
725725
color: white;
726-
box-shadow: 0px 3px 1px -2px rgb(0 0 0 / 20%),
727-
0px 2px 2px 0px rgb(0 0 0 / 14%), 0px 1px 5px 0px rgb(0 0 0 / 12%);
728726
}
729727

730728
.deleteIcon {

0 commit comments

Comments
 (0)