Fix: Added grab cursor on hover over favorite icon (#4415)
* #4405 Fix: Added grab cursor on hover over favorite icon * resolved comment --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
@ -13,6 +13,22 @@ const StyledContainer = styled(NavigationDrawerSection)`
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const StyledAvatar = styled(Avatar)`
|
||||||
|
:hover {
|
||||||
|
cursor: grab;
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
const StyledNavigationDrawerItem = styled(NavigationDrawerItem)`
|
||||||
|
:active {
|
||||||
|
cursor: grabbing;
|
||||||
|
|
||||||
|
.fav-avatar:hover {
|
||||||
|
cursor: grabbing;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
export const Favorites = () => {
|
export const Favorites = () => {
|
||||||
const { favorites, handleReorderFavorite } = useFavorites();
|
const { favorites, handleReorderFavorite } = useFavorites();
|
||||||
|
|
||||||
@ -41,15 +57,16 @@ export const Favorites = () => {
|
|||||||
draggableId={id}
|
draggableId={id}
|
||||||
index={index}
|
index={index}
|
||||||
itemComponent={
|
itemComponent={
|
||||||
<NavigationDrawerItem
|
<StyledNavigationDrawerItem
|
||||||
key={id}
|
key={id}
|
||||||
label={labelIdentifier}
|
label={labelIdentifier}
|
||||||
Icon={() => (
|
Icon={() => (
|
||||||
<Avatar
|
<StyledAvatar
|
||||||
entityId={recordId}
|
entityId={recordId}
|
||||||
avatarUrl={avatarUrl}
|
avatarUrl={avatarUrl}
|
||||||
type={avatarType}
|
type={avatarType}
|
||||||
placeholder={labelIdentifier}
|
placeholder={labelIdentifier}
|
||||||
|
className="fav-avatar"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
to={link}
|
to={link}
|
||||||
|
|||||||
Reference in New Issue
Block a user