Commit eff2d4b
feat: add 'copy css' button to tools/border-image-generator (mdn#174)
* feat: add 'click to copy CSS' button to tools/border-image-generator
* fix: replace `mousedown` listener with `onclick`
* `mousedown` triggers for both right and middle-clicks, which does not align with the UX of a button. `onclick` is a more 'canonical' option.
* fix: correct `click` listener typo
* Fix code style
---------
Co-authored-by: Vadim Makeev <vmakeev@mozilla.com>1 parent 984cb14 commit eff2d4b
3 files changed
+42
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1267 | 1267 | | |
1268 | 1268 | | |
1269 | 1269 | | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
1270 | 1289 | | |
1271 | 1290 | | |
1272 | 1291 | | |
| |||
1281 | 1300 | | |
1282 | 1301 | | |
1283 | 1302 | | |
| 1303 | + | |
1284 | 1304 | | |
1285 | 1305 | | |
1286 | 1306 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
972 | 972 | | |
973 | 973 | | |
974 | 974 | | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
975 | 994 | | |
976 | 995 | | |
977 | 996 | | |
| |||
0 commit comments