-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(select): display
select
properly
`popover` property cause this bug since element extends HTMLElement under the hood Also fix the lable fixes: #41
- Loading branch information
Showing
6 changed files
with
100 additions
and
25 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,72 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Select Basic | Poppy-ui</title> | ||
<link rel="stylesheet" href="/build/poppy.css"> | ||
<script type="module" src="/build/poppy.esm.js"></script> | ||
<script nomodule src="/build/poppy.js"></script> | ||
<style> | ||
main { | ||
width: 100vw; | ||
height: 100dvh; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1rem; | ||
padding: 1rem; | ||
|
||
background-color: var(--base-300); | ||
} | ||
section { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
gap: .35rem; | ||
} | ||
div { | ||
display: flex; | ||
gap: .5rem; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<main> | ||
<section> | ||
<h2>Select basic</h2> | ||
<div> | ||
<pop-select> | ||
<span slot="label">Recommendation</span> | ||
<pop-select-option>Option 1</pop-select-option> | ||
<pop-select-option>Option 2</pop-select-option> | ||
<pop-select-option>Option 3</pop-select-option> | ||
<pop-select-option>Option 4</pop-select-option> | ||
</pop-select> | ||
<pop-select value="Option 2"> | ||
<span slot="label">Recommendation</span> | ||
<pop-select-option>Option 1</pop-select-option> | ||
<pop-select-option>Option 2</pop-select-option> | ||
<pop-select-option>Option 3</pop-select-option> | ||
<pop-select-option>Option 4</pop-select-option> | ||
</pop-select> | ||
<pop-join> | ||
<pop-select> | ||
<span slot="label">Recommendation</span> | ||
<pop-select-option>Option 1</pop-select-option> | ||
<pop-select-option>Option 2</pop-select-option> | ||
<pop-select-option>Option 3</pop-select-option> | ||
<pop-select-option>Option 4</pop-select-option> | ||
</pop-select> | ||
<pop-select value="Option 2"> | ||
<span slot="label">Recommendation</span> | ||
<pop-select-option>Option 1</pop-select-option> | ||
<pop-select-option>Option 2</pop-select-option> | ||
<pop-select-option>Option 3</pop-select-option> | ||
<pop-select-option>Option 4</pop-select-option> | ||
</pop-select> | ||
</pop-join> | ||
</div> | ||
</section> | ||
</main> | ||
</body> | ||
</html> |
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