Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: pages/forms/basic.html

Issue 29510560: Issue 4633 - Default form styles (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Separate forms into basic, advanced, and buttons Created Aug. 10, 2017, 11:44 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 title=Basic Form Fields
2
3 <h1>Basic Form Fields</h1>
4 <p>Default styles for native form elements.</p>
juliandoucette 2017/08/10 17:10:07 Note: I think this paragraph is technically a subt
ire 2017/08/11 15:25:15 Yes.
5
6 <p><a href="forms">Back to Forms</a></p>
juliandoucette 2017/08/10 17:10:06 NIT: We don't have back buttons on the other demo
ire 2017/08/11 15:25:15 Ack. Done.
7
8 <nav>
9 <ol>
10 <li><a href="#basic-text">Basic text</a></li>
11 <li><a href="#textareas">Textareas</a></li>
12 <li><a href="#selects">Selects</a></li>
13 <li><a href="#checkboxes">Checkboxes</a></li>
14 <li><a href="#radios">Radios</a></li>
ire 2017/08/10 11:46:40 I'm undecided whether all these qualify as "basic
juliandoucette 2017/08/10 17:10:07 I think they do. Are there any in particular you a
ire 2017/08/11 15:25:15 Okay. I was thinking, Selects, Radios, Checkboxes.
15 </ol>
16 </nav>
17
18 <section id="basic-text">
19 <h2>Basic text</h2>
20 <p>
21 <label for="default-text">Default text</label>
22 <input id="default-text" type="text" placeholder="Placeholder" />
23 </p>
24 <p>
25 <label for="invalid-text">Invalid text</label>
26 <input id="invalid-text" type="text" placeholder="Placeholder" aria-invali d="true" />
27 </p>
28 <p>
29 <label for="disabled-text">Disabled text</label>
30 <input id="disabled-text" type="text" placeholder="Placeholder" disabled / >
31 </p>
32 </section>
33
34 <section id="textareas">
35 <h2>Textareas</h2>
36 <p>
37 <label for="default-textarea">Default textarea</label>
38 <textarea id="default-textarea"></textarea>
39 </p>
40 <p>
41 <label for="invalid-textarea">Invalid textarea</label>
42 <textarea id="invalid-textarea" aria-invalid="true"></textarea>
43 </p>
44 <p >
45 <label for="disabled-textarea">Disabled textarea</label>
46 <textarea id="disabled-textarea" disabled></textarea>
47 </p>
48 </section>
49
50 <section id="selects">
51 <h2>Selects</h2>
52 <p>
53 <label for="default-select">Default select</label>
54 <select id="default-select">
55 <option selected>Default option</option>
56 <optgroup label="Group 1">
57 <option>Option 1</option>
58 <option>Option 2</option>
59 </optgroup>
60 <optgroup label="Group 2">
61 <option>Option 3</option>
62 <option disabled>Option 4</option>
63 </optgroup>
64 </select>
65 </p>
66 <p>
67 <label for="invalid-select">Invalid select</label>
68 <select id="invalid-select" aria-invalid="true">
69 <option selected>Default option</option>
70 <optgroup label="Group 1">
71 <option>Option 1</option>
72 <option>Option 2</option>
73 </optgroup>
74 <optgroup label="Group 2">
75 <option>Option 3</option>
76 <option disabled>Option 4</option>
77 </optgroup>
78 </select>
79 </p>
80 <p>
81 <label for="disabled-select">Disabled select</label>
82 <select id="disabled-select" disabled>
83 <option selected>Default option</option>
84 <optgroup label="Group 1">
85 <option>Option 1</option>
86 <option>Option 2</option>
87 </optgroup>
88 <optgroup label="Group 2">
89 <option>Option 3</option>
90 <option disabled>Option 4</option>
91 </optgroup>
92 </select>
93 </p>
94 </section>
95
96 <section id="checkboxes">
97 <h2>Checkboxes</h2>
98 <p>
99 <label>
100 <input type="checkbox">
101 Default checkbox
102 </label>
103 </p>
104 <p>
105 <label>
106 <input type="checkbox" aria-invalid="true">
107 Invalid checkbox
108 </label>
109 </p>
110 <p>
111 <label>
112 <input type="checkbox" disabled>
113 Disabled checkbox
114 </label>
115 </p>
116 </section>
117
118 <section id="radios">
119 <h2>Radios</h2>
120 <fieldset>
121 <legend>Radio group label</legend>
122 <p>
123 <label>
124 <input type="radio" name="radios" value="default">
125 Default radio
126 </label>
127 </p>
128 <p>
129 <label>
130 <input type="radio" name="radios" value="invalid" aria-invalid="true">
131 Invalid radio
132 </label>
133 </p>
134 <p>
135 <label>
136 <input type="radio" name="radios" value="disabled" disabled>
137 Disabled radio
138 </label>
139 </p>
140 </fieldset>
141 </section>
OLDNEW

Powered by Google App Engine
This is Rietveld