Skip to content

Commit

Permalink
Make inner button element stretch to width of host. (#408)
Browse files Browse the repository at this point in the history
This regressed in the button README PR (#366).

Found because it broke our internal screenshot test which checks that
the button grows when the user sets host width.
  • Loading branch information
aomarks authored Aug 22, 2019
1 parent f7f11dd commit 958d1db
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/button/src/mwc-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ limitations under the License.
}

:host {
display: inline-block;
display: inline-flex;
outline: none;
}

:host([disabled]) {
pointer-events: none;
}
}

.mdc-button {
flex: auto;
}

0 comments on commit 958d1db

Please sign in to comment.