Skip to content

Commit c146b79

Browse files
ktranDevtools-frontend LUCI CQ
authored andcommitted
[doc] Update component doc button documentation
This CL simplifies the documentation for buttons to concentrate on the most important variants. Screenshot: https://i.imgur.com/64NmrHW.png Bug: 357513556 Change-Id: I54a9b2120985a8ccdddf2d3f943db65fdef493ab Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6012181 Reviewed-by: Alex Rudenko <[email protected]> Auto-Submit: Kim-Anh Tran <[email protected]> Commit-Queue: Alex Rudenko <[email protected]>
1 parent 121f895 commit c146b79

File tree

2 files changed

+153
-405
lines changed

2 files changed

+153
-405
lines changed

front_end/ui/components/docs/button/basic.html

Lines changed: 18 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,49 +10,33 @@
1010
<meta name="viewport" content="width=device-width" />
1111
<title>Button example</title>
1212
<style>
13-
#container {
13+
body {
14+
overflow: auto !important; /* stylelint-disable-line declaration-no-important */
15+
}
16+
17+
div {
18+
width: 500px;
1419
padding: 25px;
1520
display: flex;
1621
align-items: center;
1722
flex-wrap: wrap;
1823
gap: 10px;
1924
}
20-
#toolbar {
21-
background-color: var(--sys-color-cdt-base-container);
22-
display: flex;
23-
flex-direction: row;
24-
align-items: center;
25-
border-bottom: 1px solid var(--sys-color-divider);
26-
padding: 0px 5px;
27-
height: 29px;
28-
}
29-
#small-toolbar {
30-
background-color: var(--sys-color-cdt-base-container);
31-
display: flex;
32-
flex-direction: row;
33-
align-items: center;
34-
border-bottom: 1px solid var(--sys-color-divider);
35-
padding: 0px 5px;
36-
height: 23px;
37-
}
38-
.separator {
39-
background-color: var(--sys-color-divider);
40-
width: 1px;
41-
height: 17px;
42-
margin: 0px 5px;
43-
}
4425
</style>
4526
</head>
4627
<body>
47-
<div id="container">
48-
</div>
49-
<div id="toolbar">
50-
</div>
51-
<div id="small-toolbar">
52-
</div>
53-
<form onsubmit="event.preventDefault(); alert('submitted');" id="form">
54-
<input name="field" placeholder="Enter smth" />
55-
</form>
28+
<header>Buttons</header>
29+
<div id="buttons"></div>
30+
<header>Primary buttons</header>
31+
<div id="primary-buttons"></div>
32+
<header>Tonal buttons</header>
33+
<div id="tonal-buttons"></div>
34+
<header>Outlined buttons</header>
35+
<div id="outlined-buttons"></div>
36+
<header>Text buttons</header>
37+
<div id="text-buttons"></div>
38+
<header>Icon buttons</header>
39+
<div id="icon-buttons"></div>
5640
<script type="module" src="./basic.js"></script>
5741
</body>
5842
</html>

0 commit comments

Comments
 (0)