digdir / designsystemet

Designsystemet
https://designsystemet.no
MIT License
85 stars 38 forks source link

`Search` component contains a div for error message when there is no error #2765

Closed standeren closed 2 weeks ago

standeren commented 2 weeks ago

Version number

0.63.0

Description of the bug

In version 0.63.0 there is a small issues with the Search component. It contains a div for error message when no error exists making spacing around it inconsequent.

See Image: Skjermbilde 2024-11-11 kl  10 21 53

Steps To Reproduce

  1. Use the component and see that there is a div where the error message can be shown

Additional Information

No response

Barsnes commented 2 weeks ago

Hi, and thanks for the issue! I am closing this, since it is fixed in next.

As a solution to your problem, you could remove the gap manually, or change the style in some other way.