fix(button): set width/height clickarea 100%

This commit is contained in:
Joren Broekema 2020-10-19 13:06:46 +02:00
parent 7b4a0c4aef
commit b910d6f730
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'@lion/button': patch
---
On top of the 40x40px min height and width, set width/height to 100% so that the clickarea covers the entire width or height of the button.

View file

@ -76,6 +76,8 @@ export class LionButton extends DisabledWithTabIndexMixin(SlotMixin(LitElement))
/* src = https://www.smashingmagazine.com/2012/02/finger-friendly-design-ideal-mobile-touchscreen-target-sizes/ */
min-height: 40px;
min-width: 40px;
width: 100%;
height: 100%;
}
.button-content {