fix(button): set width/height clickarea 100%
This commit is contained in:
parent
7b4a0c4aef
commit
b910d6f730
2 changed files with 7 additions and 0 deletions
5
.changeset/curly-oranges-promise.md
Normal file
5
.changeset/curly-oranges-promise.md
Normal 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.
|
||||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue