Skip to content
Snippets Groups Projects
Commit cd7b5d93 authored by Chris Garrity's avatar Chris Garrity
Browse files

fix focus styling

Don’t use default focus style it’s ugly.

Don’t allow the image to be dragged.
parent 68389c8e
No related branches found
No related tags found
No related merge requests found
...@@ -6,11 +6,17 @@ ...@@ -6,11 +6,17 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border-radius: 50%;
user-select: none; user-select: none;
cursor: pointer; cursor: pointer;
transition: all 0.15s ease-out; transition: all 0.15s ease-out;
} }
.delete-button:focus {
outline: none;
box-shadow: 0px 0px 0px 4px $motion-transparent;
}
.delete-button-visible { .delete-button-visible {
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -19,6 +19,7 @@ const DeleteButton = props => ( ...@@ -19,6 +19,7 @@ const DeleteButton = props => (
<div className={styles.deleteButtonVisible}> <div className={styles.deleteButtonVisible}>
<img <img
className={styles.deleteIcon} className={styles.deleteIcon}
draggable={false}
src={deleteIcon} src={deleteIcon}
/> />
</div> </div>
......
...@@ -57,6 +57,7 @@ exports[`SpriteSelectorItemComponent matches snapshot when given a number and de ...@@ -57,6 +57,7 @@ exports[`SpriteSelectorItemComponent matches snapshot when given a number and de
> >
<img <img
className={undefined} className={undefined}
draggable={false}
src="test-file-stub" src="test-file-stub"
/> />
</div> </div>
...@@ -141,6 +142,7 @@ exports[`SpriteSelectorItemComponent matches snapshot when selected 1`] = ` ...@@ -141,6 +142,7 @@ exports[`SpriteSelectorItemComponent matches snapshot when selected 1`] = `
> >
<img <img
className={undefined} className={undefined}
draggable={false}
src="test-file-stub" src="test-file-stub"
/> />
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment