kirbydesign / designsystem

Kirby Design System
https://cookbook.kirby.design
MIT License
82 stars 22 forks source link

[Enhancement] Kirby Header wraps a little to early #3486

Open troelslenda opened 1 month ago

troelslenda commented 1 month ago

Describe the enhancement

When viewing the Kirby Header in a viewport < 768px the display property is switched from grid to flex, resulting in the action buttons being moved below. This makes good sence for narrow viewports (mobile) but as shown on the attached screenshot it's in some cases way to early.

Describe the solution you'd like

If you change the .container css to always have display property set to flex and add the following

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;

Then the break where action buttons are moved below happens more harmonic. Granted, details might have been overlooked.

Have you considered any alternatives?

Are there any additional context?

Screenshot 2024-05-30 at 14 18 06

https://github.com/kirbydesign/designsystem/assets/263060/d6197d3b-bf12-455b-93f4-fdcdfb6d0026


Checklist:

The following tasks should be carried out in sequence in order to follow the process of contributing correctly.

Refinement

Implementation

The contributor who wants to implement this issue should:

Review

Once the issue has been implemented and is ready for review: