Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Kirby list items gets extensive padding in webkit #2117

Closed
9 tasks
troelslenda opened this issue Mar 18, 2022 · 2 comments · Fixed by #2118
Closed
9 tasks

[BUG] Kirby list items gets extensive padding in webkit #2117

troelslenda opened this issue Mar 18, 2022 · 2 comments · Fixed by #2118
Assignees
Labels

Comments

@troelslenda
Copy link
Collaborator

troelslenda commented Mar 18, 2022

Describe the bug

When using kirby-items within modals they get extensive padding in webkit and IOS.

Describe how to reproduce the bug

  1. Install 5.1.1 or higher of designsystem.
  2. Navigate to a security-details page
  3. kirby-item that resides within a modal/is not part of a kirby-page (not entirely sure what's the cause)
  4. Compare the page in Chrome and safari

Which Kirby version was used?

5.1.1 and higher

What was the expected behavior?

That the kirby-item renders alike across platforms.

Add any screenshots

Screenshot 2022-03-18 at 11 25 07

Screenshot 2022-03-18 at 11 25 55

Please complete the following information:

  • OS: MacOS and iOS
  • Browser: Safari
  • Browser version: Version 15.1 (17612.2.9.1.20)

Are there any additional context?


Checklist:

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

Verification

To make sure the bug is not intended behaviour; it should be verified by a member of team Kirby before moving on to implementation.

  • Make sure the NOT verified label has been removed by a member of team Kirby; do not proceed until this is done

Implementation

The contributor who wants to implement this issue should:

Review

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

@troelslenda troelslenda added bug NOT Prioritized Issue not yet prioritized and added to a Milestone 👶🏻 New For new issues before prioritisation and refinement NOT Verified Applied to bug reports that have not been verified by a member of @kirbydesign/kirby-guild labels Mar 18, 2022
@RasmusKjeldgaard
Copy link
Collaborator

RasmusKjeldgaard commented Mar 18, 2022

Can confirm this bug is introduced in 5.1.1, right here.

I think it is because Safari handles these differently from other browsers, when --item-padding-top/bottom is not set.

The problem occurs in the modal, because the item inherits --padding-top and --padding-bottom from the surrounding ion-content element, which is set to 24px.

This can be fixed by providing a default value to the custom padding property on the item so it overwrites what is otherwise defined by ion-content, like --padding-top: var(--item-padding-top, 8px);

@RasmusKjeldgaard RasmusKjeldgaard removed NOT Prioritized Issue not yet prioritized and added to a Milestone 👶🏻 New For new issues before prioritisation and refinement NOT Verified Applied to bug reports that have not been verified by a member of @kirbydesign/kirby-guild labels Mar 18, 2022
@RasmusKjeldgaard RasmusKjeldgaard self-assigned this Mar 18, 2022
@RasmusKjeldgaard RasmusKjeldgaard added this to the M11 ( 27/1 - 6/4 ) milestone Mar 18, 2022
@RasmusKjeldgaard RasmusKjeldgaard moved this to 🚀 In Progress in Kirby Mar 18, 2022
@RasmusKjeldgaard RasmusKjeldgaard moved this from 🚀 In Progress to 👀 Review in progess in Kirby Mar 22, 2022
@RasmusKjeldgaard RasmusKjeldgaard moved this from 👀 Review in progess to ✅ Done in Kirby Mar 23, 2022
@troelslenda
Copy link
Collaborator Author

🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants