Skip to content

Commit

Permalink
fix(transfer): apply margin to first and last items, remove container…
Browse files Browse the repository at this point in the history
… padding
  • Loading branch information
cooper-joe committed Dec 16, 2024
1 parent e62f9e7 commit 7fbb161
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
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 7fbb161

Please sign in to comment.