Skip to content

Commit

Permalink
Merge pull request #1650 from dhis2/feat/LIBS-728
Browse files Browse the repository at this point in the history
fix(transfer): adjust filter inputs and container spacing [LIBS-728]
  • Loading branch information
cooper-joe authored Dec 18, 2024
2 parents 69b3ec9 + 7fbb161 commit 7db90b0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions components/transfer/src/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const Filter = ({ dataTest, filter, onChange, label, placeholder }) => (
<div data-test={dataTest}>
<Field label={label} name={dataTest} dataTest={`${dataTest}-field`}>
<Input
dense
dataTest={`${dataTest}-input`}
type="search"
placeholder={placeholder}
Expand Down
2 changes: 0 additions & 2 deletions components/transfer/src/options-container.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { spacers } from '@dhis2/ui-constants'
import { CircularLoader } from '@dhis2-ui/loader'
import PropTypes from 'prop-types'
import React, { Fragment, useRef } from 'react'
Expand Down Expand Up @@ -69,7 +68,6 @@ export const OptionsContainer = ({
<style jsx>{`
.optionsContainer {
flex-grow: 1;
padding: ${spacers.dp4} 0;
position: relative;
overflow: hidden;
}
Expand Down
10 changes: 9 additions & 1 deletion components/transfer/src/transfer-option.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from '@dhis2/ui-constants'
import { colors, spacers } from '@dhis2/ui-constants'
import cx from 'classnames'
import PropTypes from 'prop-types'
import React, { useRef } from 'react'
Expand Down Expand Up @@ -66,6 +66,14 @@ export const TransferOption = ({
color: ${colors.grey600};
cursor: not-allowed;
}
div:first-child {
margin-block-start: ${spacers.dp4};
}
div:last-child {
margin-block-end: ${spacers.dp4};
}
`}</style>
</div>
)
Expand Down

0 comments on commit 7db90b0

Please sign in to comment.