Conversation
|
|
thetaPC
marked this pull request as ready for review
August 17, 2023 18:21
Contributor
|
I resolved the merge conflicts with |
sean-perkins
self-requested a review
August 22, 2023 21:16
liamdebeasi
reviewed
Aug 25, 2023
| min-width: 100%; | ||
|
|
||
| font-size: 34px; | ||
| font-size: dynamic-font-min(1, 34px); |
Contributor
There was a problem hiding this comment.
This is going to set a minimum font size. Did you mean to use dynamic-font-max instead?
| position: relative; | ||
|
|
||
| font-size: 13px; | ||
| font-size: dynamic-font-min(1, 13px); |
Contributor
There was a problem hiding this comment.
This is going to set a minimum font size. Did you mean to use dynamic-font-max instead?
| transform: translateZ(0); | ||
|
|
||
| font-size: 17px; | ||
| font-size: dynamic-font-min(1, 17px); |
Contributor
There was a problem hiding this comment.
This is going to set a minimum font size. Did you mean to use dynamic-font-max instead?
thetaPC
commented
Aug 29, 2023
| transform: translateZ(0); | ||
|
|
||
| font-size: 17px; | ||
| font-size: dynamic-font-max(17px, 1.2); |
Contributor
Author
thetaPC
commented
Aug 29, 2023
| min-width: 100%; | ||
|
|
||
| font-size: 34px; | ||
| font-size: dynamic-font-max(34px, 1.8); |
Contributor
Author
thetaPC
commented
Aug 30, 2023
| position: relative; | ||
|
|
||
| font-size: 13px; | ||
| font-size: dynamic-font-max(13px, 1.8); |
Contributor
Author
thetaPC
commented
Aug 30, 2023
| position: relative; | ||
|
|
||
| font-size: 13px; | ||
| font-size: dynamic-font-max(13px, 1.8); |
Contributor
Author
There was a problem hiding this comment.
Weirdly, the small sized title on native has a larger font size when on ax5.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.






Issue number: internal
What is the current behavior?
The title component does not support dynamic type.
What is the new behavior?
size="large") are no longer rendered withposition="absolute"position="absolute"is used to center aligned the text. However, a title component withsize="large"is always left aligned and doesn't need to be set withabsolute.size="large"is no longer set withposition="absolute". This causes the component to lower itself within the box instead of being able to render at the very left top corner.A few notes on the screenshot diffs:
1px change for Firefox diffs
The accordion and header condense screenshots have a diff for Firefox only. This is due to a rendering quirk in Gecko, the engine that powers Firefox.
Previously,
ion-titlewas positioned absolutely, so it was taking on the dimensions of the parent element. Now that it is positioned statically,ion-titlewill use the size of its contents to calculate the dimensions. In this case, the height will be determined by the height of the title text. Chrome and Safari render the text as 40px tall, but Firefox renders it as 41px tall.Title characters dimensions change
We reduced the padding on the start/end and increased the padding on the top/bottom which is going to cause the title to change dimensions, so these screenshots are correct. Because the dimensions of the title itself are changing too with the absolute --> static change the overall size of the toolbar never actually changes.
Note that we are also moving padding from the toolbar to the title itself now that it is no longer absolutely positioned.
Does this introduce a breaking change?
Other information
N/A