Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 016d154

Browse files
committedSep 30, 2022
Feat: move remove button and display it on hover
1 parent 759a2ec commit 016d154

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
 

‎packages/ra-ui-materialui/src/list/filter/FilterFormInput.tsx

+15
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,25 @@ const Root = styled('div', {
6464
display: 'flex',
6565
alignItems: 'flex-end',
6666
pointerEvents: 'auto',
67+
position: 'relative',
68+
'@media (hover: hover)': {
69+
'&:hover': {
70+
[`& .${FilterFormInputClasses.hideButton}`]: {
71+
display: 'flex',
72+
},
73+
},
74+
},
6775

6876
[`& .${FilterFormInputClasses.spacer}`]: { width: theme.spacing(2) },
6977
[`& .${FilterFormInputClasses.hideButton}`]: {
7078
marginBottom: theme.spacing(1),
79+
position: 'absolute',
80+
right: 0,
81+
top: 0,
82+
zIndex: 10,
83+
'@media (hover: hover)': {
84+
display: 'none',
85+
},
7186
},
7287
}));
7388

0 commit comments

Comments
 (0)
Please sign in to comment.