From 882f155251c8a16bd7c354f6642a327b20930b93 Mon Sep 17 00:00:00 2001 From: Thomas Zemp Date: Thu, 14 Dec 2023 16:07:07 +0100 Subject: [PATCH] fix: update info icons (#1290) --- src/settingsFields.component.js | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/src/settingsFields.component.js b/src/settingsFields.component.js index 9c168022..af4c8236 100644 --- a/src/settingsFields.component.js +++ b/src/settingsFields.component.js @@ -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' @@ -36,7 +42,7 @@ const styles = { color: AppTheme.rawTheme.palette.primary1Color, position: 'absolute', right: 0, - top: 24, + top: 36, }, menuIcon: { color: '#757575', @@ -85,24 +91,12 @@ function wrapUserSettingsOverride({ component, valueLabel }) { : i18n.t('This setting can be overridden by user settings') return ( -
+
{super.render()}
- - info_outline - + + +
)