From c168b489b5347f716e6463c7f9335dcc45fbc1b5 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Tue, 18 Feb 2014 11:56:58 -0600 Subject: [PATCH] feat(button): Increase hit area size of a button --- scss/_button.scss | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/scss/_button.scss b/scss/_button.scss index d719d4a43e..195d162bc0 100644 --- a/scss/_button.scss +++ b/scss/_button.scss @@ -29,6 +29,16 @@ cursor: pointer; + &:after { + // used to create a larger button "hit" area + position: absolute; + top: -6px; + right: -8px; + bottom: -6px; + left: -8px; + content: ' '; + } + .icon { vertical-align: top; } @@ -198,11 +208,7 @@ clear: both; &:after { - display: block; - visibility: hidden; - clear: both; - height: 0; - content: "."; + clear: both; } }