-
-
Notifications
You must be signed in to change notification settings - Fork 162
/
Copy pathmodal.html
38 lines (36 loc) · 985 Bytes
/
modal.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<style>
#dialog form {
width: 360px;
}
.h1 {
align-items: center;
justify-content: space-between;
display: flex;
flex-direction: row;
}
.icon {
border-radius: 4px;
width: 24px;
height: 24px;
overflow: hidden;
}
</style>
<dialog id="dialog">
<form method="dialog">
<h1 class="h1">
<span>Create Shape</span>
<img class="icon" src="./assets/icon.png"/>
</h1>
<hr/>
<p>Please enter the kind of shape you'd like to create. You can also include additional options by separating
them with spaces.</p>
<label>
<span>Shape</span>
<input type="text" placeholder="e.g., Rectangle 10 10 20 40"/>
</label>
<footer>
<button uxp-variant="primary">Cancel</button>
<button type="submit" uxp-variant="cta">Create</button>
</footer>
</form>
</dialog>