Skip to content

feat(item-option): support dynamic type - #28050

Merged
brandyscarney merged 7 commits into
FW-4146from
FW-4431
Aug 24, 2023
Merged

brandyscarney merged 7 commits into
FW-4146from
FW-4431

Conversation

@brandyscarney

@brandyscarney brandyscarney commented Aug 23, 2023 •

Copy link
Copy Markdown
Member

Issue number: N/A


What is the current behavior?

The styles for item option do not support dynamic type.

What is the new behavior?

  • Adds support for dynamic type by converting font-size to use rem units
  • Adds test for scaling the font in item-sliding
    • I put the test under item-sliding because that is where the sliding item utils are, and we have historically kept all of the tests there since an item option should be used with an ion-item-sliding element.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Native

I used the Reminders app for comparison. The Reminders app uses different maximum sizes for item options in the same sliding item. We are going to follow the "Delete" button.

80% 100% 135% 310%
80% 100% 135% 310%
80% 100% 135% 310%

Ionic Framework

80% 100% 135% 310%
ios 80% ios 100% ios 135% ios 310%
MD 80% MD 100% MD 135% MD 310%

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions github-actions Bot added the package: core @ionic/core package label Aug 23, 2023
@brandyscarney
brandyscarney changed the base branch from main to FW-4146 August 23, 2023 16:26
@brandyscarney
brandyscarney marked this pull request as ready for review August 23, 2023 19:04
@brandyscarney
brandyscarney requested review from a team and mapsandapps and removed request for a team August 23, 2023 19:04

@mapsandapps mapsandapps left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me 👍🏻

@brandyscarney

Copy link
Copy Markdown
Member Author

Updated the max size to match the Delete button in the Reminders app instead.

@brandyscarney
brandyscarney merged commit bcc0343 into FW-4146 Aug 24, 2023
@brandyscarney
brandyscarney deleted the FW-4431 branch August 24, 2023 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants