Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: help icon color #337

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading