-
Notifications
You must be signed in to change notification settings - Fork 844
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into rm-eui-chart-theme
- Loading branch information
Showing
21 changed files
with
550 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Added the following properties to `EuiButtonGroup`'s `options` configs: `toolTipContent`, `toolTipProps`, and `title`. These new properties allow wrapping buttons in `EuiToolTips`, and additionally customizing or disabling the native browser `title` tooltip. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
**Bug fixes** | ||
|
||
- Fixed `EuiFlyout` to not repeatedly remove/add a body class on resize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import React, { useState } from 'react'; | ||
|
||
import { EuiButtonGroup } from '../../../../src/components'; | ||
|
||
export default () => { | ||
const toggleButtons = [ | ||
{ | ||
id: 'buttonGroup__0', | ||
label: 'Default title', | ||
}, | ||
{ | ||
id: 'buttonGroup__1', | ||
label: 'Custom tooltip content', | ||
toolTipContent: 'This is a custom tooltip', | ||
}, | ||
{ | ||
id: 'buttonGroup__2', | ||
label: 'Custom tooltip props', | ||
toolTipContent: 'This is another custom tooltip', | ||
toolTipProps: { | ||
title: 'My custom title', | ||
position: 'right', | ||
}, | ||
}, | ||
]; | ||
|
||
const [toggleIdSelected, setToggleIdSelected] = useState('buttonGroup__1'); | ||
|
||
const onChange = (optionId) => { | ||
setToggleIdSelected(optionId); | ||
}; | ||
|
||
return ( | ||
<EuiButtonGroup | ||
legend="This is a group with tooltips" | ||
options={toggleButtons} | ||
idSelected={toggleIdSelected} | ||
onChange={(id) => onChange(id)} | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.