Skip to content

Commit

Permalink
Small text improvement to number field type (#8816)
Browse files Browse the repository at this point in the history
Micro improvement to the number field type text
  • Loading branch information
FelixMalfait authored Nov 29, 2024
1 parent a7bbc9e commit ebc381f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const SettingsDataModelFieldNumberForm = ({
Icon={IconEye}
dropdownId="number-type"
title="Number type"
description="The number type you want to use, e.g. percentage"
description="Display as a plain number or a percentage"
value={type}
onChange={(value) => onChange({ type: value, decimals: count })}
disabled={disabled}
Expand All @@ -69,7 +69,7 @@ export const SettingsDataModelFieldNumberForm = ({
<SettingsOptionCardContentCounter
Icon={IconDecimal}
title="Number of decimals"
description={`Example: ${(type === 'percentage' ? 99 : 1000).toFixed(count)} ${type === 'percentage' ? '%' : ''}`}
description={`E.g. ${(type === 'percentage' ? 99 : 1000).toFixed(count)}${type === 'percentage' ? '%' : ''} for ${count} decimal${count > 1 ? 's' : ''}`}
value={count}
onChange={(value) => onChange({ type: type, decimals: value })}
disabled={disabled}
Expand Down

0 comments on commit ebc381f

Please sign in to comment.