-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding more props to EuiHeaderSectionItemButton, EuiFieldSearch, and …
…EuiAccordion (#2914) * Extending `div` element in EuiFlyout type * Added `shrink` prop to EuiFlexItem Needs some doc something * Added `arrowDisplay` prop to EuiAccordion for changing side or hiding completely * Added `prepend` and `append` ability to EuiFieldSearch * Added `notification` and `notificationColor` props to EuiHeaderSectionItemButton to automatically add the correct positioning via CSS * Revert "Added `shrink` prop to EuiFlexItem" This reverts commit 61a3103. * [Docs] Added header notification example to basic header example * Adding aria-label to updates button * [Docs] Better prop comments * cl * Fix typos * 1 more snap
- Loading branch information
Showing
26 changed files
with
446 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import React from 'react'; | ||
|
||
import { | ||
EuiAccordion, | ||
EuiText, | ||
EuiCode, | ||
EuiSpacer, | ||
} from '../../../../src/components'; | ||
|
||
export default () => ( | ||
<div> | ||
<EuiAccordion | ||
id="accordion10" | ||
buttonContent="Arrows default to the left" | ||
paddingSize="s"> | ||
<EuiText> | ||
<p> | ||
Any content inside of <EuiCode>EuiAccordion</EuiCode> will appear | ||
here. | ||
</p> | ||
</EuiText> | ||
</EuiAccordion> | ||
<EuiSpacer /> | ||
<EuiAccordion | ||
id="accordion11" | ||
arrowDisplay="right" | ||
buttonContent="This one has it on the right" | ||
paddingSize="s"> | ||
<EuiText> | ||
<p> | ||
Any content inside of <EuiCode>EuiAccordion</EuiCode> will appear | ||
here. | ||
</p> | ||
</EuiText> | ||
</EuiAccordion> | ||
<EuiSpacer /> | ||
<EuiAccordion | ||
id="accordion12" | ||
arrowDisplay="none" | ||
buttonContent="This one has it removed entirely" | ||
paddingSize="s"> | ||
<EuiText> | ||
<p> | ||
Any content inside of <EuiCode>EuiAccordion</EuiCode> will appear | ||
here. | ||
</p> | ||
</EuiText> | ||
</EuiAccordion> | ||
</div> | ||
); |
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
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
Oops, something went wrong.