Skip to content

Commit

Permalink
feat(KUI-1264): adjust info button for ButtonModal
Browse files Browse the repository at this point in the history
  • Loading branch information
karlandindrakryggen committed Jun 4, 2024
1 parent 04f13be commit 4d743e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions public/css/kursinfo-admin-web.scss
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,6 @@ h2 {
}
}

.btn-info-modal {
margin-left: 10px;
vertical-align: middle;
}

.btn-upload-file {
button {
width: 100%;
Expand Down
6 changes: 3 additions & 3 deletions public/js/app/components/ButtonModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ function ButtonModal(props) {
const { btnLabel, children, course, disabled, type, id, modalLabels } = props
const { header, body, btnCancel, btnConfirm } = modalLabels
const btnStyle = classNames(
{ 'btn-info-modal': type === 'info-icon' }, // TODO: karl: kth-style - modal button
{ 'btn-info-modal': type === 'info-icon' },
{ secondary: type === 'cancel-with-modal' || type === 'cancel-without-modal' },
{ success: type === 'submit' },
{ danger: type === 'remove' }
{ error: type === 'remove' }
)

return (
Expand Down Expand Up @@ -72,7 +72,7 @@ function ButtonModal(props) {
)}
</ModalFooter>
</Modal>
</span>
</>
)
}
export default ButtonModal

0 comments on commit 4d743e7

Please sign in to comment.