-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(compoents): Changed ListItem's buttons in edit mode
- Added labels to the buttons - Changed buttons position - Added focus on Input when user clicks on edit action. - Added `onEnter` trigger for `update` action Ticket: task/Test-114 Reviewed-by: @MIGUELez11 Refs: #162
- Loading branch information
1 parent
1038af1
commit 54d639b
Showing
3 changed files
with
77 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
packages/components/src/form/ListInput/components/ListItem.styles.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { createStyles } from '@mantine/core'; | ||
|
||
const ListItemStyles = createStyles((theme) => ({ | ||
root: { | ||
display: 'flex', | ||
alignItems: 'center', | ||
width: '100%', | ||
flexDirection: 'column', | ||
}, | ||
sortableIcon: { | ||
marginRight: theme.spacing[4], | ||
}, | ||
inputContainer: { width: '100%', display: 'flex', alignItems: 'center' }, | ||
input: { width: '100%' }, | ||
buttonsContainer: { | ||
display: 'flex', | ||
alignItems: 'center', | ||
width: '100%', | ||
justifyContent: 'flex-end', | ||
gap: theme.spacing[4], | ||
marginTop: theme.spacing[4], | ||
}, | ||
})); | ||
|
||
export { ListItemStyles }; |