-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix bug where clicking the combo box caret would focus on the button. - Set focus on searchInput when you click the caret to open the combo box. * Fix EuiComboBox focus trap. Make clear button keyboard-accessible. - Redesign EuiFormControlLayout props to use icon and clear configuration objects. * Protect against tab amounts that are not 1 or -1. * Remove virtualized list from tab order. * Refactor EuiFormControlLayout and add examples of it to the docs. * Add extra space to bottom of docs site pages.
- Loading branch information
Showing
20 changed files
with
691 additions
and
274 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
110 changes: 110 additions & 0 deletions
110
src-docs/src/views/form_controls/form_control_layout.js
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,110 @@ | ||
import React, { | ||
Fragment, | ||
} from 'react'; | ||
|
||
import { | ||
EuiFormControlLayout, | ||
EuiSpacer, | ||
} from '../../../../src/components'; | ||
|
||
export default () => ( | ||
<Fragment> | ||
|
||
<EuiFormControlLayout | ||
icon="search" | ||
> | ||
<input type="text" className="euiFieldText" /> | ||
</EuiFormControlLayout> | ||
|
||
<EuiSpacer size="m" /> | ||
|
||
<EuiFormControlLayout | ||
isLoading | ||
> | ||
<input type="text" className="euiFieldText" /> | ||
</EuiFormControlLayout> | ||
|
||
<EuiSpacer size="m" /> | ||
|
||
<EuiFormControlLayout | ||
clear={{ onClick: () => {} }} | ||
> | ||
<input type="text" className="euiFieldText" /> | ||
</EuiFormControlLayout> | ||
|
||
<EuiSpacer size="m" /> | ||
|
||
<EuiFormControlLayout | ||
isLoading | ||
clear={{ onClick: () => {} }} | ||
> | ||
<input type="text" className="euiFieldText" /> | ||
</EuiFormControlLayout> | ||
|
||
<EuiSpacer size="m" /> | ||
|
||
<EuiFormControlLayout | ||
isLoading | ||
icon="search" | ||
> | ||
<input type="text" className="euiFieldText" /> | ||
</EuiFormControlLayout> | ||
|
||
<EuiSpacer size="m" /> | ||
|
||
<EuiFormControlLayout | ||
isLoading | ||
icon={{ type: 'arrowDown', side: 'right' }} | ||
> | ||
<input type="text" className="euiFieldText" /> | ||
</EuiFormControlLayout> | ||
|
||
<EuiSpacer size="m" /> | ||
|
||
<EuiFormControlLayout | ||
clear={{ onClick: () => {} }} | ||
icon="search" | ||
> | ||
<input type="text" className="euiFieldText" /> | ||
</EuiFormControlLayout> | ||
|
||
<EuiSpacer size="m" /> | ||
|
||
<EuiFormControlLayout | ||
clear={{ onClick: () => {} }} | ||
icon={{ type: 'arrowDown', side: 'right' }} | ||
> | ||
<input type="text" className="euiFieldText" /> | ||
</EuiFormControlLayout> | ||
|
||
<EuiSpacer size="m" /> | ||
|
||
<EuiFormControlLayout | ||
isLoading | ||
clear={{ onClick: () => {} }} | ||
icon="search" | ||
> | ||
<input type="text" className="euiFieldText" /> | ||
</EuiFormControlLayout> | ||
|
||
<EuiSpacer size="m" /> | ||
|
||
<EuiFormControlLayout | ||
isLoading | ||
clear={{ onClick: () => {} }} | ||
icon={{ type: 'arrowDown', side: 'right' }} | ||
> | ||
<input type="text" className="euiFieldText" /> | ||
</EuiFormControlLayout> | ||
|
||
<EuiSpacer size="m" /> | ||
|
||
<EuiFormControlLayout | ||
isLoading | ||
clear={{ onClick: () => {} }} | ||
icon="search" | ||
> | ||
<input type="text" className="euiFieldText" /> | ||
</EuiFormControlLayout> | ||
</Fragment> | ||
); |
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.