lion/.changeset/two-rats-tease.md
Jorge del Casar 26b605939f
refactor(button): several improvements (#1019)
- remove click-area --> move styles to host::before
- reduce css so that extending styles makes sense. Merge .btn with host
- reduce the template and remove the if else construction inside the template
- hide focus styles if they're not needed, for example, when an element receives focus via the mouse.
- improve __clickDelegationHandler. Use current slotted native button instead of create new one
- fix vertical align when 2 buttons are inline and one has icon. Example included.
- add min-with to ensure target size for mobile, not only height
- add test to check event.target in all situations (inside and outside form)
2020-10-15 12:13:46 +02:00

550 B

@lion/button
minor

Several button improvements

  • remove click-area --> move styles to host::before
  • reduce css so that extending styles makes sense. Merge .btn with host.
  • reduce the template and remove the if else construction inside the template.
  • hide focus styles if they're not needed, for example, when an element receives focus via the mouse.
  • improve __clickDelegationHandler. Use current slotted native button instead of create new one.
  • fix vertical alignment when 2 buttons are inline and one has icon. Example included.