Skip to content

Commit

Permalink
feat(button): increase hit area of toolbar buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Feb 1, 2016
1 parent d4afb4d commit cad9e49
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ionic/components/toolbar/toolbar-button.scss
Expand Up @@ -16,7 +16,6 @@

white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;

text-align: center;
text-transform: none;
Expand All @@ -29,6 +28,16 @@
@include appearance(none);
}

.bar-button:after {
// used to make the button's hit area larger
position: absolute;
content: '';
top: -7px;
right: -2px;
bottom: -6px;
left: -2px;
}


// Menu Toggle
// --------------------------------------------------
Expand Down
6 changes: 6 additions & 0 deletions ionic/components/toolbar/toolbar.md.scss
Expand Up @@ -133,6 +133,12 @@ ion-buttons[right] {
font-weight: 500;
}

.bar-button-solid,
.bar-button-outline {
// restrict the ripple to button size
overflow: hidden;
}

@mixin md-bar-button-default($color-name, $color-value) {

.bar-button-#{$color-name} {
Expand Down

0 comments on commit cad9e49

Please sign in to comment.