{"id":66,"date":"2009-06-11T13:58:35","date_gmt":"2009-06-11T20:58:35","guid":{"rendered":"http:\/\/kai.mactane.org\/blog\/?p=66"},"modified":"2011-06-15T22:42:34","modified_gmt":"2011-06-16T05:42:34","slug":"cruel-rollover-trickery","status":"publish","type":"post","link":"https:\/\/kagan.mactane.org\/blog\/2009\/06\/11\/cruel-rollover-trickery\/","title":{"rendered":"Cruel Rollover Trickery"},"content":{"rendered":"<p>I found an interesting UI problem today, on a site that I will be kind enough not to actually link to. Instead, I&#8217;ll just reproduce the general concept and problem here:<\/p>\n<ul id=\"bad_example\">\n<li id=\"bad_example_1\"><a href=\"#bad_example\">alpha<\/a><\/li>\n<li id=\"bad_example_2\"><a href=\"#bad_example\">beta<\/a><\/li>\n<li id=\"bad_example_3\"><a href=\"#bad_example\">gamma<\/a><\/li>\n<li id=\"bad_example_4\"><a href=\"#bad_example\">delta<\/a><\/li>\n<\/ul>\n<p><br clear=\"all\"><br \/>\nThe links all just link straight to the nav bar itself, so if you scroll your browser view so that the list <em>isn&#8217;t<\/em> right at the top, you&#8217;ll be able to tell when you&#8217;ve clicked one of the links. See what happens?<\/p>\n<p>You roll over one of the list items, and you get an immediate visual reaction: not only does the background change color, but the mouse cursor even becomes a pointer. It&#8217;s not just <em>suggesting<\/em> that your cursor is over a clickable item; it&#8217;s flat-out <em>asserting that to be the case<\/em>.<\/p>\n<p>And it&#8217;s lying.<\/p>\n<p>The clickable area is nothing but the text in the very center of the nav bar item, and the only feedback you&#8217;ll get when you hover over <em>that<\/em> is the destination URL appearing in your browser&#8217;s status bar \u2014 <em>if<\/em> you have that turned on; many browsers leave the status bar off by default.<\/p>\n<p>I&#8217;m fairly sure the people at Anonycorp didn&#8217;t mean to do this. I think it was just an ill-considered (and poorly QA-ed!) mistake in choosing which CSS rules to apply on which elements. But it&#8217;s a horrible, cruel UI trick to play on your visitors and users. Don&#8217;t do this.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I found an interesting UI problem today, on a site that I will be kind enough not to actually link to. Instead, I&#8217;ll just reproduce the general concept and problem here: alpha beta gamma delta The links all just link straight to the nav bar itself, so if you scroll your browser view so that [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,39,29,8,10,9,30],"_links":{"self":[{"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/posts\/66"}],"collection":[{"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/comments?post=66"}],"version-history":[{"count":5,"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/posts\/66\/revisions"}],"predecessor-version":[{"id":69,"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/posts\/66\/revisions\/69"}],"wp:attachment":[{"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/media?parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/categories?post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/tags?post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}