-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Dropdown): fix html structure when inside InputGroup (#5713)
- Loading branch information
Showing
8 changed files
with
123 additions
and
24 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
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,6 @@ | ||
import * as React from 'react'; | ||
|
||
const context = React.createContext<unknown | null>(null); | ||
context.displayName = 'InputGroupContext'; | ||
|
||
export default context; |
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,32 @@ | ||
<> | ||
<InputGroup className="mb-3"> | ||
<SplitButton | ||
variant="outline-secondary" | ||
title="Action" | ||
id="segmented-button-dropdown-1" | ||
> | ||
<Dropdown.Item href="#">Action</Dropdown.Item> | ||
<Dropdown.Item href="#">Another action</Dropdown.Item> | ||
<Dropdown.Item href="#">Something else here</Dropdown.Item> | ||
<Dropdown.Divider /> | ||
<Dropdown.Item href="#">Separated link</Dropdown.Item> | ||
</SplitButton> | ||
<FormControl aria-label="Text input with dropdown button" /> | ||
</InputGroup> | ||
|
||
<InputGroup className="mb-3"> | ||
<FormControl aria-label="Text input with dropdown button" /> | ||
<SplitButton | ||
variant="outline-secondary" | ||
title="Action" | ||
id="segmented-button-dropdown-2" | ||
alignRight | ||
> | ||
<Dropdown.Item href="#">Action</Dropdown.Item> | ||
<Dropdown.Item href="#">Another action</Dropdown.Item> | ||
<Dropdown.Item href="#">Something else here</Dropdown.Item> | ||
<Dropdown.Divider /> | ||
<Dropdown.Item href="#">Separated link</Dropdown.Item> | ||
</SplitButton> | ||
</InputGroup> | ||
</>; |
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