diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-10-06 14:10:43 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2015-10-09 16:58:53 +0100 |
commit | 0ae59f7314fe161245462b8cabba5d4e1988853f (patch) | |
tree | 84ad3038c6e523c4433a56b69f491059e63de3d8 /perllib | |
parent | 50b8576284de8ebb1fc59bdeb4b6f98e58358333 (diff) |
Improve item list CSS.
Generally, a rewrite of issue-list-a to item-list--reports or
item-list--wards (two different uses) and issue-list to
item-list--updates, with subsequent renames/changes to children.
For those cobrands using a different list showing a pin icon, use
item-list__item--with-pin to stop needing to override existing classes.
Fix a variety of niggling issues e.e ward list display, or overloading
of the .text class.
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/TestMech.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/TestMech.pm b/perllib/FixMyStreet/TestMech.pm index 1035a47ba..cc5f9dd71 100644 --- a/perllib/FixMyStreet/TestMech.pm +++ b/perllib/FixMyStreet/TestMech.pm @@ -402,7 +402,7 @@ sub extract_update_metas { my $result = scraper { process 'div#updates div.problem-update p em', 'meta[]', 'TEXT'; - process '.update-text .meta-2', 'meta[]', 'TEXT'; + process '.item-list__update-text .meta-2', 'meta[]', 'TEXT'; } ->scrape( $mech->response ); @@ -423,7 +423,7 @@ sub extract_problem_list { my $mech = shift; my $result = scraper { - process 'ul.issue-list-a li a h4', 'problems[]', 'TEXT'; + process 'ul.item-list--reports li a h4', 'problems[]', 'TEXT'; }->scrape( $mech->response ); return $result->{ problems } || []; |