Merge lp:~stephen-stewart/ulysses/css-regression-testing into lp:ulysses
- css-regression-testing
- Merge into trunk
Proposed by
Stephen Stewart
Status: | Merged |
---|---|
Approved by: | Stephen Stewart |
Approved revision: | 22 |
Merged at revision: | 17 |
Proposed branch: | lp:~stephen-stewart/ulysses/css-regression-testing |
Merge into: | lp:ulysses |
Diff against target: |
427 lines (+143/-79) 11 files modified
.bzrignore (+1/-0) .csslintrc (+1/-0) Gruntfile.js (+16/-8) README.md (+12/-4) config/phantomcss-tests.js (+50/-0) package.json (+3/-1) src/dropdowns.css (+0/-1) src/forms.css (+0/-5) src/layout.css (+0/-1) src/navigation.css (+0/-3) test/index.html (+60/-56) |
To merge this branch: | bzr merge lp:~stephen-stewart/ulysses/css-regression-testing |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jonas G. Drange (community) | Approve | ||
Review via email: mp+200656@code.launchpad.net |
Commit message
regression tests
Description of the change
Tidy grunt tasks.
Add regression testing via PhantomCSS.
To post a comment you must log in.
- 22. By Stephen Stewart
-
fix lint errors
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file '.bzrignore' | |||
2 | --- .bzrignore 2014-01-01 17:08:09 +0000 | |||
3 | +++ .bzrignore 2014-01-07 11:56:36 +0000 | |||
4 | @@ -3,3 +3,4 @@ | |||
5 | 3 | node_modules/ | 3 | node_modules/ |
6 | 4 | .sass-cache | 4 | .sass-cache |
7 | 5 | public/* | 5 | public/* |
8 | 6 | results/ | ||
9 | 6 | 7 | ||
10 | === modified file '.csslintrc' | |||
11 | --- .csslintrc 2014-01-07 10:48:03 +0000 | |||
12 | +++ .csslintrc 2014-01-07 11:56:36 +0000 | |||
13 | @@ -6,6 +6,7 @@ | |||
14 | 6 | "display-property-grouping": false, | 6 | "display-property-grouping": false, |
15 | 7 | "duplicate-background-images": false, | 7 | "duplicate-background-images": false, |
16 | 8 | "empty-rules": false, | 8 | "empty-rules": false, |
17 | 9 | "fallback-colors": false, | ||
18 | 9 | "floats": false, | 10 | "floats": false, |
19 | 10 | "font-faces": false, | 11 | "font-faces": false, |
20 | 11 | "font-sizes": false, | 12 | "font-sizes": false, |
21 | 12 | 13 | ||
22 | === modified file 'Gruntfile.js' | |||
23 | --- Gruntfile.js 2014-01-07 11:00:45 +0000 | |||
24 | +++ Gruntfile.js 2014-01-07 11:56:36 +0000 | |||
25 | @@ -13,7 +13,7 @@ | |||
26 | 13 | }, | 13 | }, |
27 | 14 | 14 | ||
28 | 15 | src: { | 15 | src: { |
30 | 16 | src: 'src/*.scss' | 16 | src: 'src/*.css' |
31 | 17 | } | 17 | } |
32 | 18 | }, | 18 | }, |
33 | 19 | 19 | ||
34 | @@ -65,8 +65,7 @@ | |||
35 | 65 | options: { | 65 | options: { |
36 | 66 | port: 9001, | 66 | port: 9001, |
37 | 67 | hostname: '*', | 67 | hostname: '*', |
40 | 68 | base: 'test', | 68 | base: 'test' |
39 | 69 | keepalive: true | ||
41 | 70 | } | 69 | } |
42 | 71 | } | 70 | } |
43 | 72 | }, | 71 | }, |
44 | @@ -84,13 +83,20 @@ | |||
45 | 84 | ['rework.prefix', 'border-radius'], | 83 | ['rework.prefix', 'border-radius'], |
46 | 85 | ['rework.prefix', 'box-shadow'], | 84 | ['rework.prefix', 'box-shadow'], |
47 | 86 | ['rework.prefix', 'animation'], | 85 | ['rework.prefix', 'animation'], |
48 | 86 | ['rework.prefix', 'transition'], | ||
49 | 87 | ['rework.prefixValue', 'linear-gradient'] | 87 | ['rework.prefixValue', 'linear-gradient'] |
50 | 88 | ], | 88 | ], |
51 | 89 | vendors: ['-o-', '-ms-', '-moz-', '-webkit-'] | 89 | vendors: ['-o-', '-ms-', '-moz-', '-webkit-'] |
52 | 90 | } | 90 | } |
53 | 91 | }, | ||
54 | 92 | |||
55 | 93 | phantomcss: { | ||
56 | 94 | ulysses: { | ||
57 | 95 | src: [ | ||
58 | 96 | 'config/phantomcss-tests.js' | ||
59 | 97 | ] | ||
60 | 98 | }, | ||
61 | 91 | } | 99 | } |
62 | 92 | |||
63 | 93 | // TODO a release task for bower package | ||
64 | 94 | }); | 100 | }); |
65 | 95 | 101 | ||
66 | 96 | // configure csslint to only run on changed file | 102 | // configure csslint to only run on changed file |
67 | @@ -108,14 +114,16 @@ | |||
68 | 108 | grunt.loadNpmTasks('grunt-contrib-watch'); | 114 | grunt.loadNpmTasks('grunt-contrib-watch'); |
69 | 109 | grunt.loadNpmTasks('grunt-contrib-connect'); | 115 | grunt.loadNpmTasks('grunt-contrib-connect'); |
70 | 110 | grunt.loadNpmTasks('grunt-rework'); | 116 | grunt.loadNpmTasks('grunt-rework'); |
71 | 117 | grunt.loadNpmTasks('grunt-phantomcss'); | ||
72 | 111 | 118 | ||
75 | 112 | grunt.registerTask('default',['build']); | 119 | grunt.registerTask('default',['run']); |
76 | 113 | grunt.registerTask('test', ['csslint']); | 120 | grunt.registerTask('test', ['build', 'connect', 'phantomcss']); |
77 | 121 | grunt.registerTask('run', ['build', 'connect', 'watch']); | ||
78 | 114 | grunt.registerTask('build', [ | 122 | grunt.registerTask('build', [ |
79 | 115 | 'clean', | 123 | 'clean', |
80 | 116 | 'rework', | 124 | 'rework', |
81 | 125 | 'csslint', | ||
82 | 117 | 'concat', | 126 | 'concat', |
83 | 118 | 'cssmin' | 127 | 'cssmin' |
84 | 119 | ]); | 128 | ]); |
85 | 120 | grunt.registerTask('server', ['build', 'connect']); | ||
86 | 121 | } | 129 | } |
87 | 122 | 130 | ||
88 | === modified file 'README.md' | |||
89 | --- README.md 2013-12-14 07:13:35 +0000 | |||
90 | +++ README.md 2014-01-07 11:56:36 +0000 | |||
91 | @@ -21,9 +21,17 @@ | |||
92 | 21 | 21 | ||
93 | 22 | '''' | 22 | '''' |
94 | 23 | 23 | ||
99 | 24 | To run a server showing the test page: | 24 | Default grunt task ('run') will start a server on localhost and a watch task to |
100 | 25 | 25 | build and lint any changed files: | |
101 | 26 | '''' | 26 | |
102 | 27 | grunt server | 27 | '''' |
103 | 28 | grunt [run] | ||
104 | 29 | |||
105 | 30 | '''' | ||
106 | 31 | |||
107 | 32 | Testing | ||
108 | 33 | |||
109 | 34 | '''' | ||
110 | 35 | grunt test | ||
111 | 28 | 36 | ||
112 | 29 | '''' | 37 | '''' |
113 | 30 | 38 | ||
114 | === added directory 'config' | |||
115 | === added file 'config/phantomcss-tests.js' | |||
116 | --- config/phantomcss-tests.js 1970-01-01 00:00:00 +0000 | |||
117 | +++ config/phantomcss-tests.js 2014-01-07 11:56:36 +0000 | |||
118 | @@ -0,0 +1,50 @@ | |||
119 | 1 | /** | ||
120 | 2 | casper.test.begin('test buttons', 1, function suite(test) { | ||
121 | 3 | casper.start( 'http://0.0.0.0:9001/index.html' ); | ||
122 | 4 | casper.viewport(1024, 768); | ||
123 | 5 | |||
124 | 6 | casper.then(function(){ | ||
125 | 7 | phantomcss.screenshot('[data-qa="buttons"]', 'Buttons'); | ||
126 | 8 | }); | ||
127 | 9 | |||
128 | 10 | casper.then( function(){ | ||
129 | 11 | phantomcss.compareAll(); | ||
130 | 12 | }); | ||
131 | 13 | |||
132 | 14 | casper.then( function(){ | ||
133 | 15 | //phantomcss.compareMatched('Buttons'); | ||
134 | 16 | phantomcss.compareAll(); | ||
135 | 17 | }); | ||
136 | 18 | |||
137 | 19 | casper.run(function(){ | ||
138 | 20 | console.log('\nTHE END.'); | ||
139 | 21 | test.done(); | ||
140 | 22 | phantom.exit(phantomcss.getExitStatus()); | ||
141 | 23 | }); | ||
142 | 24 | }); | ||
143 | 25 | **/ | ||
144 | 26 | |||
145 | 27 | |||
146 | 28 | casper.start( 'http://0.0.0.0:9001/index.html' ); | ||
147 | 29 | casper.viewport(1024, 768); | ||
148 | 30 | |||
149 | 31 | casper.then(function(){ | ||
150 | 32 | phantomcss.screenshot('[data-qa="default-button"]', 'Default Button'); | ||
151 | 33 | phantomcss.screenshot('[data-qa="primary-button"]', 'Primary Button'); | ||
152 | 34 | phantomcss.screenshot('[data-qa="tertiary-button"]', 'Tertiary Button'); | ||
153 | 35 | phantomcss.screenshot('[data-qa="button-group"]', 'Button Group'); | ||
154 | 36 | phantomcss.screenshot('[data-qa="button-toolbar"]', 'Button Toolbar'); | ||
155 | 37 | }); | ||
156 | 38 | |||
157 | 39 | casper.then(function(){ | ||
158 | 40 | phantomcss.screenshot('[data-qa="headlines"]', 'Headlines'); | ||
159 | 41 | }); | ||
160 | 42 | |||
161 | 43 | casper.then( function(){ | ||
162 | 44 | phantomcss.compareAll(); | ||
163 | 45 | }); | ||
164 | 46 | |||
165 | 47 | casper.run(function(){ | ||
166 | 48 | console.log('\nTHE END.'); | ||
167 | 49 | phantom.exit(phantomcss.getExitStatus()); | ||
168 | 50 | }); | ||
169 | 0 | 51 | ||
170 | === modified file 'package.json' | |||
171 | --- package.json 2014-01-01 17:08:09 +0000 | |||
172 | +++ package.json 2014-01-07 11:56:36 +0000 | |||
173 | @@ -28,6 +28,8 @@ | |||
174 | 28 | "grunt-contrib-connect": "~0.5.0", | 28 | "grunt-contrib-connect": "~0.5.0", |
175 | 29 | "grunt-contrib-compress": "~0.5.3", | 29 | "grunt-contrib-compress": "~0.5.3", |
176 | 30 | "grunt-contrib-copy": "~0.4.1", | 30 | "grunt-contrib-copy": "~0.4.1", |
178 | 31 | "bower": "~1.2.8" | 31 | "bower": "~1.2.8", |
179 | 32 | "phantomjs": "~1.9.2-6", | ||
180 | 33 | "grunt-phantomcss": "~0.2.0" | ||
181 | 32 | } | 34 | } |
182 | 33 | } | 35 | } |
183 | 34 | 36 | ||
184 | === added directory 'screenshots' | |||
185 | === added file 'screenshots/Button Group_3.png' | |||
186 | 35 | Binary files screenshots/Button Group_3.png 1970-01-01 00:00:00 +0000 and screenshots/Button Group_3.png 2014-01-07 11:56:36 +0000 differ | 37 | Binary files screenshots/Button Group_3.png 1970-01-01 00:00:00 +0000 and screenshots/Button Group_3.png 2014-01-07 11:56:36 +0000 differ |
187 | === added file 'screenshots/Button Toolbar_4.png' | |||
188 | 36 | Binary files screenshots/Button Toolbar_4.png 1970-01-01 00:00:00 +0000 and screenshots/Button Toolbar_4.png 2014-01-07 11:56:36 +0000 differ | 38 | Binary files screenshots/Button Toolbar_4.png 1970-01-01 00:00:00 +0000 and screenshots/Button Toolbar_4.png 2014-01-07 11:56:36 +0000 differ |
189 | === added file 'screenshots/Buttons_0.png' | |||
190 | 37 | Binary files screenshots/Buttons_0.png 1970-01-01 00:00:00 +0000 and screenshots/Buttons_0.png 2014-01-07 11:56:36 +0000 differ | 39 | Binary files screenshots/Buttons_0.png 1970-01-01 00:00:00 +0000 and screenshots/Buttons_0.png 2014-01-07 11:56:36 +0000 differ |
191 | === added file 'screenshots/Default Button_0.png' | |||
192 | 38 | Binary files screenshots/Default Button_0.png 1970-01-01 00:00:00 +0000 and screenshots/Default Button_0.png 2014-01-07 11:56:36 +0000 differ | 40 | Binary files screenshots/Default Button_0.png 1970-01-01 00:00:00 +0000 and screenshots/Default Button_0.png 2014-01-07 11:56:36 +0000 differ |
193 | === added file 'screenshots/Headlines_1.png' | |||
194 | 39 | Binary files screenshots/Headlines_1.png 1970-01-01 00:00:00 +0000 and screenshots/Headlines_1.png 2014-01-07 11:56:36 +0000 differ | 41 | Binary files screenshots/Headlines_1.png 1970-01-01 00:00:00 +0000 and screenshots/Headlines_1.png 2014-01-07 11:56:36 +0000 differ |
195 | === added file 'screenshots/Headlines_5.png' | |||
196 | 40 | Binary files screenshots/Headlines_5.png 1970-01-01 00:00:00 +0000 and screenshots/Headlines_5.png 2014-01-07 11:56:36 +0000 differ | 42 | Binary files screenshots/Headlines_5.png 1970-01-01 00:00:00 +0000 and screenshots/Headlines_5.png 2014-01-07 11:56:36 +0000 differ |
197 | === added file 'screenshots/Primary Button_1.png' | |||
198 | 41 | Binary files screenshots/Primary Button_1.png 1970-01-01 00:00:00 +0000 and screenshots/Primary Button_1.png 2014-01-07 11:56:36 +0000 differ | 43 | Binary files screenshots/Primary Button_1.png 1970-01-01 00:00:00 +0000 and screenshots/Primary Button_1.png 2014-01-07 11:56:36 +0000 differ |
199 | === added file 'screenshots/Tertiary Button_2.png' | |||
200 | 42 | Binary files screenshots/Tertiary Button_2.png 1970-01-01 00:00:00 +0000 and screenshots/Tertiary Button_2.png 2014-01-07 11:56:36 +0000 differ | 44 | Binary files screenshots/Tertiary Button_2.png 1970-01-01 00:00:00 +0000 and screenshots/Tertiary Button_2.png 2014-01-07 11:56:36 +0000 differ |
201 | === modified file 'src/dropdowns.css' | |||
202 | --- src/dropdowns.css 2013-12-14 07:28:45 +0000 | |||
203 | +++ src/dropdowns.css 2014-01-07 11:56:36 +0000 | |||
204 | @@ -18,7 +18,6 @@ | |||
205 | 18 | border-radius:2px; | 18 | border-radius:2px; |
206 | 19 | background-clip: padding-box; | 19 | background-clip: padding-box; |
207 | 20 | background-color:#fff; | 20 | background-color:#fff; |
208 | 21 | -webkit-box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.1); | ||
209 | 22 | box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.1); | 21 | box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.1); |
210 | 23 | } | 22 | } |
211 | 24 | 23 | ||
212 | 25 | 24 | ||
213 | === modified file 'src/forms.css' | |||
214 | --- src/forms.css 2014-01-01 16:10:32 +0000 | |||
215 | +++ src/forms.css 2014-01-07 11:56:36 +0000 | |||
216 | @@ -65,7 +65,6 @@ | |||
217 | 65 | input[type="color"], | 65 | input[type="color"], |
218 | 66 | select, | 66 | select, |
219 | 67 | textarea { | 67 | textarea { |
220 | 68 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); | ||
221 | 69 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); | 68 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); |
222 | 70 | border-radius:2px; | 69 | border-radius:2px; |
223 | 71 | width:100%; | 70 | width:100%; |
224 | @@ -74,10 +73,6 @@ | |||
225 | 74 | display: block; | 73 | display: block; |
226 | 75 | border: 1px solid #ccc; | 74 | border: 1px solid #ccc; |
227 | 76 | font-weight:inherit; | 75 | font-weight:inherit; |
228 | 77 | -webkit-transition: 0.3s linear border; | ||
229 | 78 | -moz-transition: 0.3s linear border; | ||
230 | 79 | -ms-transition: 0.3s linear border; | ||
231 | 80 | -o-transition: 0.3s linear border; | ||
232 | 81 | transition: 0.3s linear border; | 76 | transition: 0.3s linear border; |
233 | 82 | } | 77 | } |
234 | 83 | 78 | ||
235 | 84 | 79 | ||
236 | === modified file 'src/layout.css' | |||
237 | --- src/layout.css 2013-12-14 06:56:19 +0000 | |||
238 | +++ src/layout.css 2014-01-07 11:56:36 +0000 | |||
239 | @@ -94,7 +94,6 @@ | |||
240 | 94 | padding:20px; | 94 | padding:20px; |
241 | 95 | margin:0 0 2em 0; | 95 | margin:0 0 2em 0; |
242 | 96 | border-radius:12px; | 96 | border-radius:12px; |
243 | 97 | padding: 20px; | ||
244 | 98 | } | 97 | } |
245 | 99 | 98 | ||
246 | 100 | .ues-box form { | 99 | .ues-box form { |
247 | 101 | 100 | ||
248 | === modified file 'src/navigation.css' | |||
249 | --- src/navigation.css 2014-01-07 11:00:45 +0000 | |||
250 | +++ src/navigation.css 2014-01-07 11:56:36 +0000 | |||
251 | @@ -101,7 +101,6 @@ | |||
252 | 101 | display:block; | 101 | display:block; |
253 | 102 | height:2px; | 102 | height:2px; |
254 | 103 | left:0; | 103 | left:0; |
255 | 104 | width:22px; | ||
256 | 105 | z-index:1000; | 104 | z-index:1000; |
257 | 106 | background-color:#f75216; | 105 | background-color:#f75216; |
258 | 107 | width:100%; | 106 | width:100%; |
259 | @@ -125,12 +124,10 @@ | |||
260 | 125 | 124 | ||
261 | 126 | .ues-navbar-toggle.active span { | 125 | .ues-navbar-toggle.active span { |
262 | 127 | background-color:#dd4814; | 126 | background-color:#dd4814; |
263 | 128 | -webkit-transform: rotate(45deg); | ||
264 | 129 | transform: rotate(45deg); | 127 | transform: rotate(45deg); |
265 | 130 | } | 128 | } |
266 | 131 | .ues-navbar-toggle.active span:before { | 129 | .ues-navbar-toggle.active span:before { |
267 | 132 | background-color:white; | 130 | background-color:white; |
268 | 133 | -webkit-transform: rotate(90deg); | ||
269 | 134 | transform: rotate(90deg); | 131 | transform: rotate(90deg); |
270 | 135 | top:0; | 132 | top:0; |
271 | 136 | left:0; | 133 | left:0; |
272 | 137 | 134 | ||
273 | === modified file 'test/index.html' | |||
274 | --- test/index.html 2013-12-14 07:28:45 +0000 | |||
275 | +++ test/index.html 2014-01-07 11:56:36 +0000 | |||
276 | @@ -6,7 +6,7 @@ | |||
277 | 6 | 6 | ||
278 | 7 | <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"> | 7 | <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"> |
279 | 8 | 8 | ||
281 | 9 | <link href='//fonts.googleapis.com/css?family=Ubuntu:400,300,700' rel='stylesheet' type='text/css'> | 9 | <link href='http://fonts.googleapis.com/css?family=Ubuntu:400,300,700' rel='stylesheet' type='text/css'> |
282 | 10 | 10 | ||
283 | 11 | <link rel="stylesheet" href="/css/ulysses.css"> | 11 | <link rel="stylesheet" href="/css/ulysses.css"> |
284 | 12 | 12 | ||
285 | @@ -34,6 +34,7 @@ | |||
286 | 34 | 34 | ||
287 | 35 | <h2>Headline Styles</h2> | 35 | <h2>Headline Styles</h2> |
288 | 36 | 36 | ||
289 | 37 | <div data-qa="headlines"> | ||
290 | 37 | <h1 class="ues-hdisplay">Display Headline</h1> | 38 | <h1 class="ues-hdisplay">Display Headline</h1> |
291 | 38 | <h1 class="ues-hmain">Main Headline</h1> | 39 | <h1 class="ues-hmain">Main Headline</h1> |
292 | 39 | <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> | 40 | <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> |
293 | @@ -41,9 +42,10 @@ | |||
294 | 41 | <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> | 42 | <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> |
295 | 42 | <h1 class="ues-hlight">Light Headline</h1> | 43 | <h1 class="ues-hlight">Light Headline</h1> |
296 | 43 | <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> | 44 | <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> |
297 | 45 | </div> | ||
298 | 44 | 46 | ||
299 | 45 | <h2>Multiline Headlines</h2> | 47 | <h2>Multiline Headlines</h2> |
301 | 46 | <div style="width:320px"> | 48 | <div style="width:320px" data-qa="multiline-headlines"> |
302 | 47 | <h1 class="ues-hdisplay">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</h1> | 49 | <h1 class="ues-hdisplay">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</h1> |
303 | 48 | <h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</h1> | 50 | <h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</h1> |
304 | 49 | <h2>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</h2> | 51 | <h2>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</h2> |
305 | @@ -52,9 +54,9 @@ | |||
306 | 52 | 54 | ||
307 | 53 | <h2>Block Content</h2> | 55 | <h2>Block Content</h2> |
308 | 54 | 56 | ||
312 | 55 | <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> | 57 | <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> |
313 | 56 | <p>Reiciendis soluta ab, soluta molestiae nesciunt ipsum est quis debitis voluptas qui at sed quo? Praesentium voluptate voluptatum placeat ea molestiae doloribus deserunt?</p> | 58 | <p>Reiciendis soluta ab, soluta molestiae nesciunt ipsum est quis debitis voluptas qui at sed quo? Praesentium voluptate voluptatum placeat ea molestiae doloribus deserunt?</p> |
314 | 57 | <p>Exercitationem eum esse quos minus, maiores suscipit cupiditate delectus reprehenderit illo quidem distinctio esse nam aliquam fugit, reiciendis veritatis a expedita nisi deserunt rem repellat quos placeat illum, minima est iusto itaque iure? Odit facere possimus architecto sunt facilis voluptatibus eaque maiores necessitatibus, dolor deserunt est.</p> | 59 | <p>Exercitationem eum esse quos minus, maiores suscipit cupiditate delectus reprehenderit illo quidem distinctio esse nam aliquam fugit, reiciendis veritatis a expedita nisi deserunt rem repellat quos placeat illum, minima est iusto itaque iure? Odit facere possimus architecto sunt facilis voluptatibus eaque maiores necessitatibus, dolor deserunt est.</p> |
315 | 58 | 60 | ||
316 | 59 | 61 | ||
317 | 60 | <h3>Lead body copy</h3> | 62 | <h3>Lead body copy</h3> |
318 | @@ -117,57 +119,59 @@ | |||
319 | 117 | 119 | ||
320 | 118 | <section> | 120 | <section> |
321 | 119 | <h1>Buttons</h1> | 121 | <h1>Buttons</h1> |
373 | 120 | <p> | 122 | <div data-qa="buttons"> |
374 | 121 | <button class=ues-button>Default button</button> | 123 | <p> |
375 | 122 | <button class="ues-button ues-button-primary">Primary button</button> | 124 | <button class=ues-button data-qa="default-button">Default button</button> |
376 | 123 | <button class="ues-button ues-button-tertiary">Tertiary button</button> | 125 | <button class="ues-button ues-button-primary" data-qa="primary-button">Primary button</button> |
377 | 124 | </p> | 126 | <button class="ues-button ues-button-tertiary" data-qa="tertiary-button">Tertiary button</button> |
378 | 125 | 127 | </p> | |
379 | 126 | <p> | 128 | |
380 | 127 | <button class="ues-button">☃ <span>Change Payment Method</span></button> | 129 | <p> |
381 | 128 | <button class="ues-button ues-button-primary">☃ <span>Checkout</span></button> | 130 | <button class="ues-button">☃ <span>Change Payment Method</span></button> |
382 | 129 | </p> | 131 | <button class="ues-button ues-button-primary">☃ <span>Checkout</span></button> |
383 | 130 | 132 | </p> | |
384 | 131 | <p> | 133 | |
385 | 132 | <a class="ues-button" href="#">Link</a> | 134 | <p> |
386 | 133 | <button class=ues-button type=button>Button</button> | 135 | <a class="ues-button" href="#">Link</a> |
387 | 134 | <input class=ues-button type=button value=Input> | 136 | <button class=ues-button type=button>Button</button> |
388 | 135 | <input class=ues-button type=submit value=Submit> | 137 | <input class=ues-button type=button value=Input> |
389 | 136 | </p> | 138 | <input class=ues-button type=submit value=Submit> |
390 | 137 | 139 | </p> | |
391 | 138 | <p> | 140 | |
392 | 139 | <button class="ues-button ues-button-large">Large Button</button> | 141 | <p> |
393 | 140 | <button class=ues-button>Default Button</button> | 142 | <button class="ues-button ues-button-large">Large Button</button> |
394 | 141 | <button class="ues-button ues-button-small">Small Button</button> | 143 | <button class=ues-button>Default Button</button> |
395 | 142 | </p> | 144 | <button class="ues-button ues-button-small">Small Button</button> |
396 | 143 | 145 | </p> | |
397 | 144 | <p><button class="ues-button ues-button-block">Default Block Button</button></p> | 146 | |
398 | 145 | <p><button class="ues-button ues-button-block ues-button-primary">Primary Block Button</button></p> | 147 | <p><button class="ues-button ues-button-block">Default Block Button</button></p> |
399 | 146 | 148 | <p><button class="ues-button ues-button-block ues-button-primary">Primary Block Button</button></p> | |
400 | 147 | <p> | 149 | |
401 | 148 | <div class="ues-button-group"> | 150 | <p> |
402 | 149 | <button class="ues-button">Left</button> | 151 | <div class="ues-button-group" data-qa="button-group"> |
403 | 150 | <button class="ues-button">Middle</button> | 152 | <button class="ues-button">Left</button> |
404 | 151 | <button class="ues-button">Right</button> | 153 | <button class="ues-button">Middle</button> |
405 | 152 | </div> | 154 | <button class="ues-button">Right</button> |
406 | 153 | </p> | 155 | </div> |
407 | 154 | 156 | </p> | |
408 | 155 | <p> | 157 | |
409 | 156 | <div class="ues-button-toolbar"> | 158 | <p> |
410 | 157 | <div class="ues-button-group"> | 159 | <div class="ues-button-toolbar" data-qa="button-toolbar"> |
411 | 158 | <button class="ues-button">A</button> | 160 | <div class="ues-button-group"> |
412 | 159 | <button class="ues-button">B</button> | 161 | <button class="ues-button">A</button> |
413 | 160 | <button class="ues-button">C</button> | 162 | <button class="ues-button">B</button> |
414 | 161 | </div> | 163 | <button class="ues-button">C</button> |
415 | 162 | <div class="ues-button-group"> | 164 | </div> |
416 | 163 | <button class="ues-button">D</button> | 165 | <div class="ues-button-group"> |
417 | 164 | <button class="ues-button">E</button> | 166 | <button class="ues-button">D</button> |
418 | 165 | </div> | 167 | <button class="ues-button">E</button> |
419 | 166 | <div class="ues-button-group"> | 168 | </div> |
420 | 167 | <button class="ues-button">F</button> | 169 | <div class="ues-button-group"> |
421 | 168 | </div> | 170 | <button class="ues-button">F</button> |
422 | 169 | </div> | 171 | </div> |
423 | 170 | </p> | 172 | </div> |
424 | 173 | </p> | ||
425 | 174 | </div> | ||
426 | 171 | 175 | ||
427 | 172 | <h1>Dropdowns</h1> | 176 | <h1>Dropdowns</h1> |
428 | 173 | 177 |
Apart from mismatches and warnings, the solution looks sound.