diff --git a/CHANGELOG.md b/CHANGELOG.md index 9283fb923..2d5dfaa1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,12 @@ ### Dependency updates +## [18.5.2] - 2023-01-09 + +### Changed + +- `WysiwygEditor`: Change link icon color ([@BeirlaenAaron](https://github.com/BeirlaenAaron)) in [#2519](https://github.com/teamleadercrm/ui/pull/2519)) + ## [18.5.1] - 2023-01-04 ### Added diff --git a/package.json b/package.json index 51ac360c3..35319cbcf 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@teamleader/ui", "description": "Teamleader UI library", - "version": "18.5.1", + "version": "18.5.2", "author": "Teamleader ", "bugs": { "url": "https://github.com/teamleadercrm/ui/issues" diff --git a/src/components/wysiwygEditor/decorators/linkDecorator.tsx b/src/components/wysiwygEditor/decorators/linkDecorator.tsx index 8bf96a2ef..34cc65594 100644 --- a/src/components/wysiwygEditor/decorators/linkDecorator.tsx +++ b/src/components/wysiwygEditor/decorators/linkDecorator.tsx @@ -7,6 +7,7 @@ import Link from '../../link'; import { GenericComponent } from '../../../@types/types'; import theme from './theme.css'; +import Icon from '../../icon'; const findLinkEntities = (contentBlock: ContentBlock, callback: () => void, contentState: ContentState) => { contentBlock.findEntityRanges((character) => { @@ -42,7 +43,18 @@ const LinkEntity: GenericComponent = ({ entityKey, contentState event.preventDefault()}> {children} - {showOpenLinkIcon && } + {showOpenLinkIcon && ( + + + + )} ); };