scania-digital-design-system/sdds

Bug - Using icon with button

Closed this issue · 0 comments

Describe the bug
A clear and concise description of what the bug is.
The height of the icon is causing the text inside the button to be pushed down

To Reproduce
Steps to reproduce the behavior and be very detailed

  1. Go to storybook
  2. Open button component, basic one
  3. Check button with icon
  4. compare
  5. See error

Expected behavior
A clear and concise description of what you expected to happen.
Same alignment even if you use icon

Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot 2021-12-10 at 09 21 53
Screenshot 2021-12-10 at 09 24 31

Version of SDDS or which package
1.51.1 components

System information:
Please complete the following information, don't forget version

  • Framework: Any
  • Device: Macbook
  • OS: macOS
  • Browser [e.g. Chrome, Safari]: Chrome

Additional context
Add any other context about the problem here.
Fullbleed should work the same way

AB#1260