Skip to content

Commit

Permalink
Add anchorClassName to ToolTip TS definition (#1657)
Browse files Browse the repository at this point in the history
* Add anchorClassName to ToolTip TS definition

* And prototype I guess

* Add changeling entry
  • Loading branch information
zinckiwi authored Mar 4, 2019
1 parent eb25c60 commit 6fff79d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Added support to `findTestSubject` for an optional `matcher` argument, which defaults to `~=`, enabling it to identify an element based on one of multiple space-separated values within its `data-test-subj` attribute ([#1587](https://github.com/elastic/eui/pull/1587))
- Converted `EuiFlexGrid`, `EuiFlexGroup`, `EuiFlexItem`, `EuiDescriptionList`, `EuiDescriptionListTitle`, and `EuiDescriptionListDescription` to TypeScript ([#1365](https://github.com/elastic/eui/pull/1365))
- Converted `EuiAvatar` to Typescript ([#1654](https://github.com/elastic/eui/pull/1654))
- Added missing `anchorClassName` prop to `EuiToolTip` definition ([#1657](https://github.com/elastic/eui/pull/1657))

## [`9.0.1`](https://github.com/elastic/eui/tree/v9.0.1)

Expand Down
1 change: 1 addition & 0 deletions src/components/tool_tip/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ declare module '@elastic/eui' {
| 'long';

export interface EuiToolTipProps {
anchorClassName?: string;
children: ReactElement<any>;
className?: string;
content?: ReactNode;
Expand Down
5 changes: 5 additions & 0 deletions src/components/tool_tip/tool_tip.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ EuiToolTip.propTypes = {
*/
className: PropTypes.string,

/**
* Passes onto the the trigger.
*/
anchorClassName: PropTypes.string,

/**
* Unless you provide one, this will be randomly generated.
*/
Expand Down

0 comments on commit 6fff79d

Please sign in to comment.