mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-13 01:08:58 +01:00
730566221f
Regression of #32313
213 lines
10 KiB
HTML
213 lines
10 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link href="../../../dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<title>Dropdown</title>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Dropdown <small>Bootstrap Visual Test</small></h1>
|
|
|
|
<nav class="navbar navbar-expand-md navbar-light bg-light">
|
|
<a class="navbar-brand" href="#">Navbar</a>
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="navbarResponsive">
|
|
<ul class="navbar-nav">
|
|
<li class="nav-item">
|
|
<a class="nav-link active" href="#" aria-current="page">Home</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="#">Link</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="#">Link</a>
|
|
</li>
|
|
<li class="nav-item dropdown">
|
|
<a class="nav-link dropdown-toggle" href="#" id="dropdown" data-bs-toggle="dropdown" aria-expanded="false">Dropdown</a>
|
|
<ul class="dropdown-menu" aria-labelledby="dropdown">
|
|
<li><a class="dropdown-item" href="#">Action</a></li>
|
|
<li><a class="dropdown-item" href="#">Another action</a></li>
|
|
<li><a class="dropdown-item" href="#">Something else here</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
|
|
<ul class="nav nav-pills mt-3">
|
|
<li class="nav-item">
|
|
<a class="nav-link active" href="#">Active</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="#">Link</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="#">Link</a>
|
|
</li>
|
|
<li class="nav-item dropdown">
|
|
<a class="nav-link dropdown-toggle" href="#" id="dropdown2" data-bs-toggle="dropdown" aria-expanded="false">Dropdown</a>
|
|
<ul class="dropdown-menu" aria-labelledby="dropdown2">
|
|
<li><a class="dropdown-item" href="#">Action</a></li>
|
|
<li><a class="dropdown-item" href="#">Another action</a></li>
|
|
<li><a class="dropdown-item" href="#">Something else here</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-12 mt-4">
|
|
<div class="dropdown">
|
|
<button type="button" class="btn btn-secondary" data-bs-toggle="dropdown" aria-expanded="false">Dropdown</button>
|
|
<div class="dropdown-menu">
|
|
<input id="textField" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="btn-group dropup">
|
|
<button type="button" class="btn btn-secondary">Dropup split</button>
|
|
<button type="button" class="btn btn-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
|
|
<span class="visually-hidden">Dropup split</span>
|
|
</button>
|
|
<ul class="dropdown-menu">
|
|
<li><a class="dropdown-item" href="#">Action</a></li>
|
|
<li><a class="dropdown-item" href="#">Another action</a></li>
|
|
<li><a class="dropdown-item" href="#">Something else here</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-12 mt-4">
|
|
<div class="btn-group dropup">
|
|
<button type="button" class="btn btn-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">Dropup</button>
|
|
<ul class="dropdown-menu">
|
|
<li><a class="dropdown-item" href="#">Action</a></li>
|
|
<li><a class="dropdown-item" href="#">Another action</a></li>
|
|
<li><a class="dropdown-item" href="#">Something else here</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
|
|
This dropdown's menu is end-aligned
|
|
</button>
|
|
<div class="dropdown-menu dropdown-menu-end">
|
|
<button class="dropdown-item" type="button">Action</button>
|
|
<button class="dropdown-item" type="button">Another action</button>
|
|
<button class="dropdown-item" type="button">Something else here</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-12 mt-4">
|
|
<div class="btn-group dropup" role="group">
|
|
<a href="#" class="btn btn-secondary">Dropup split align end</a>
|
|
<button type="button" id="dropdown-page-subheader-button-3" class="btn btn-secondary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
|
|
<span class="visually-hidden">Product actions</span>
|
|
</button>
|
|
<div class="dropdown-menu dropdown-menu-end">
|
|
<button class="dropdown-item" type="button">Action</button>
|
|
<button class="dropdown-item" type="button">Another action</button>
|
|
<button class="dropdown-item" type="button">Something else here with a long text</button>
|
|
</div>
|
|
</div>
|
|
<div class="btn-group dropup">
|
|
<button type="button" class="btn btn-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">Dropup align end</button>
|
|
<div class="dropdown-menu dropdown-menu-end">
|
|
<button class="dropdown-item" type="button">Action</button>
|
|
<button class="dropdown-item" type="button">Another action</button>
|
|
<button class="dropdown-item" type="button">Something else here with a long text</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-12 mt-4">
|
|
<div class="btn-group dropend" role="group">
|
|
<a href="#" class="btn btn-secondary">Dropend split</a>
|
|
<button type="button" id="dropdown-page-subheader-button-4" class="btn btn-secondary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
|
|
<span class="visually-hidden">Product actions</span>
|
|
</button>
|
|
<div class="dropdown-menu">
|
|
<button class="dropdown-item" type="button">Action</button>
|
|
<button class="dropdown-item" type="button">Another action</button>
|
|
<button class="dropdown-item" type="button">Something else here with a long text</button>
|
|
</div>
|
|
</div>
|
|
<div class="btn-group dropend">
|
|
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuRight" data-bs-toggle="dropdown" aria-expanded="false">
|
|
Dropend
|
|
</button>
|
|
<div class="dropdown-menu" aria-labelledby="dropdownMenuRight">
|
|
<button class="dropdown-item" type="button">Action</button>
|
|
<button class="dropdown-item" type="button">Another action</button>
|
|
<button class="dropdown-item" type="button">Something else here</button>
|
|
</div>
|
|
</div>
|
|
<!-- dropstart -->
|
|
<div class="btn-group dropstart" role="group">
|
|
<a href="#" class="btn btn-secondary">Dropstart split</a>
|
|
<button type="button" id="dropdown-page-subheader-button-5" class="btn btn-secondary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
|
|
<span class="visually-hidden">Product actions</span>
|
|
</button>
|
|
<div class="dropdown-menu">
|
|
<button class="dropdown-item" type="button">Action</button>
|
|
<button class="dropdown-item" type="button">Another action</button>
|
|
<button class="dropdown-item" type="button">Something else here with a long text</button>
|
|
</div>
|
|
</div>
|
|
<div class="btn-group dropstart">
|
|
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropstartMenu" data-bs-toggle="dropdown" aria-expanded="false">
|
|
Dropstart
|
|
</button>
|
|
<div class="dropdown-menu" aria-labelledby="dropstartMenu">
|
|
<button class="dropdown-item" type="button">Action</button>
|
|
<button class="dropdown-item" type="button">Another action</button>
|
|
<button class="dropdown-item" type="button">Something else here</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-3 mt-4">
|
|
<div class="btn-group dropdown">
|
|
<button type="button" class="btn btn-secondary">Dropdown reference</button>
|
|
<button type="button" class="btn btn-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false" data-bs-reference="parent">
|
|
<span class="visually-hidden">Dropdown split</span>
|
|
</button>
|
|
<ul class="dropdown-menu">
|
|
<li><a class="dropdown-item" href="#">Action</a></li>
|
|
<li><a class="dropdown-item" href="#">Another action</a></li>
|
|
<li><a class="dropdown-item" href="#">Something else here</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3 mt-4">
|
|
<div class="dropdown">
|
|
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-bs-toggle="dropdown" data-bs-display="static" aria-expanded="false">
|
|
Dropdown menu without Popper
|
|
</button>
|
|
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
|
<li><a class="dropdown-item" href="#">Action</a></li>
|
|
<li><a class="dropdown-item" href="#">Another action</a></li>
|
|
<li><a class="dropdown-item" href="#">Something else here</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="../../../node_modules/@popperjs/core/dist/umd/popper.min.js"></script>
|
|
<script src="../../dist/dom/event-handler.js"></script>
|
|
<script src="../../dist/dom/selector-engine.js"></script>
|
|
<script src="../../dist/dom/data.js"></script>
|
|
<script src="../../dist/dom/manipulator.js"></script>
|
|
<script src="../../dist/base-component.js"></script>
|
|
<script src="../../dist/dropdown.js"></script>
|
|
<script src="../../dist/collapse.js"></script>
|
|
</body>
|
|
</html>
|