Skip to content

Commit

Permalink
fix: update info icons (#1290)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomzemp authored Dec 14, 2023
1 parent 3bf0f20 commit 6448044
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions src/settingsFields.component.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import i18n from '@dhis2/d2-i18n'
import { Button, Card, CenteredContent, CircularLoader } from '@dhis2/ui'
import {
Button,
Card,
CenteredContent,
CircularLoader,
IconInfo24,
Tooltip,
} from '@dhis2/ui'
import FormBuilder from 'd2-ui/lib/forms/FormBuilder.component.js'
import { wordToValidatorMap } from 'd2-ui/lib/forms/Validators.js'
import IconButton from 'material-ui/IconButton'
import PropTypes from 'prop-types'
import React from 'react'
import configOptionStore from './configOptionStore.js'
Expand Down Expand Up @@ -35,7 +41,7 @@ const styles = {
color: AppTheme.rawTheme.palette.primary1Color,
position: 'absolute',
right: 0,
top: 24,
top: 36,
},
menuIcon: {
color: '#757575',
Expand Down Expand Up @@ -84,24 +90,12 @@ function wrapUserSettingsOverride({ component, valueLabel }) {
: i18n.t('This setting can be overridden by user settings')

return (
<div style={{ marginRight: 48 }}>
<div style={{ marginRight: 36 }}>
{super.render()}
<div style={labelStyle}>
<IconButton
iconClassName="material-icons"
tooltip={labelText}
tooltipPosition="bottom-left"
iconStyle={{
color: AppTheme.rawTheme.palette.primary1Color,
}}
tooltipStyles={{
fontSize: '.75rem',
marginRight: 32,
marginTop: -32,
}}
>
info_outline
</IconButton>
<Tooltip content={labelText}>
<IconInfo24 />
</Tooltip>
</div>
</div>
)
Expand Down

0 comments on commit 6448044

Please sign in to comment.