Skip to content

Commit

Permalink
[Lens] Update formula icons (elastic#103287)
Browse files Browse the repository at this point in the history
* 💄 Updated formula reference icon

* 💄 Replace wordwrap icons
  • Loading branch information
dej611 committed Jun 24, 2021
1 parent 5af69ed commit 5abac25
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -585,7 +585,6 @@ export function FormulaEditor({
<div className="lnsFormula__editorHeader">
<EuiFlexGroup alignItems="center" gutterSize="m" responsive={false}>
<EuiFlexItem className="lnsFormula__editorHeaderGroup">
{/* TODO: Replace `bolt` with `wordWrap` icon (after latest EUI is deployed) and hook up button to enable/disable word wrapping. */}
<EuiToolTip
content={
isWordWrapped
Expand All @@ -599,7 +598,7 @@ export function FormulaEditor({
position="top"
>
<EuiButtonIcon
iconType="bolt"
iconType={isWordWrapped ? 'wordWrap' : 'wordWrapDisabled'}
display={!isWordWrapped ? 'fill' : undefined}
color={'text'}
aria-label={
Expand Down Expand Up @@ -725,7 +724,7 @@ export function FormulaEditor({
color="text"
onClick={() => setIsHelpOpen(!isHelpOpen)}
>
<EuiIcon type="help" />
<EuiIcon type="documentation" />
<EuiIcon type={isHelpOpen ? 'arrowDown' : 'arrowUp'} />
</EuiLink>
</EuiToolTip>
Expand All @@ -747,7 +746,7 @@ export function FormulaEditor({
<EuiButtonIcon
className="lnsFormula__editorHelp lnsFormula__editorHelp--overlay"
onClick={() => setIsHelpOpen(!isHelpOpen)}
iconType="help"
iconType="documentation"
color="text"
size="s"
aria-label={i18n.translate(
Expand Down

0 comments on commit 5abac25

Please sign in to comment.