Skip to content

Commit

Permalink
Merge pull request #232 from oarepo/stojanovic/fe-252-modal-close-button
Browse files Browse the repository at this point in the history
modal close button always inside of the modal
  • Loading branch information
mirekys authored Sep 17, 2024
2 parents 3aa315d + 34a86b5 commit 12a3163
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export const ArrayFieldItem = ({
arrayHelpers={arrayHelpers}
indexPath={indexPath}
id={removeButtonId}
onMouseEnter={() => setHighlighted(true)}
onMouseLeave={() => setHighlighted(false)}
{...removeButtonProps}
/>
) : (
Expand Down Expand Up @@ -77,7 +79,7 @@ ArrayFieldItem.propTypes = {
indexPath: PropTypes.number,
children: PropTypes.node,
className: PropTypes.string,
removeButton: PropTypes.node,
removeButton: PropTypes.func,
removeButtonProps: PropTypes.object,
displayFirstInputRemoveButton: PropTypes.bool,
removeButtonLabelClassName: PropTypes.string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
height: 80vh;
}
}

.ui.modal > .close {
top: @innerCloseTop;
right: @innerCloseRight;
color: @innerCloseColor;
}
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = oarepo-ui
version = 5.2.9
version = 5.2.10
description = UI module for invenio 3.5+
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down

0 comments on commit 12a3163

Please sign in to comment.