Skip to content

Commit

Permalink
Merge pull request #337 from nginformatica/fix/help-icon-color
Browse files Browse the repository at this point in the history
fix: help icon color
  • Loading branch information
KarineBrandelli authored Jan 9, 2024
2 parents 7e5261b + 3586e1d commit 9609663
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flipper-ui",
"version": "0.30.9",
"version": "0.30.10",
"description": "",
"main": "dist/index.js",
"homepage": "https://flipper-ui.ngi.com.br/",
Expand Down
8 changes: 7 additions & 1 deletion src/core/inputs/text-field/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ import { Clear, Help as ContactSupportIcon, Edit, Save } from '../../../icons'
import IconButton from '../icon-button'
import styled from 'styled-components'
import { when, is, pipe, split, map, zipObj, reject, propEq } from 'ramda'
import { theme } from '@/theme'

const { primary } = theme.colors

export interface IOption {
label: string
Expand Down Expand Up @@ -159,10 +162,13 @@ export const toLispCase = (name: string) =>
export const HelperBox = (props: IHelperProps) => (
<Helper role='helper-box'>
<IconButton padding='6px 2px' onClick={props.onHelperClick}>
{props.helperIcon || <ContactSupportIcon color='primary' />}
{props.helperIcon || (
<ContactSupportIcon htmlColor={primary.main} />
)}
</IconButton>
</Helper>
)

/* Jest-ignore-start ignore next */
export const renderOptions = (
options: TextFieldProps['options'],
Expand Down

0 comments on commit 9609663

Please sign in to comment.