-
Notifications
You must be signed in to change notification settings - Fork 13.4k
fix(card-header): reverse order of title and subtitle on ios #26084
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally, I think we should treat this as a breaking change and target for v7. While it doesn't change public APIs, it does change the default style representation for iOS.
We have been considering other misc. spec alignment/design clean-up tasks as v7 as well, for similar reasons.
All this being said - I agree with the changes. I do think we need new screenshot tests captured for this change though.
|
I agree with this change, and also that we should target v7 instead. Holding on review until tests pass though; you may need to run the screenshot update job. |
liamdebeasi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto to making this a v7 change.
|
It looks like We will either need to update |
Pull request checklist
Please check if your PR fulfills the following requirements:
ionic-docsrepo, in a separate PR. See the contributing guide for details.npm run build) was run locally and any changes were pushednpm run lint) has passed locally and any fixes were made for failuresPull request type
Please check the type of change your PR introduces:
What is the current behavior?
Card header displays the title & subtitle in the order they are placed in the DOM
Issue URL: N/A
This was brought up while implementing the card documentation here: ionic-team/ionic-docs#2584 (comment)
What is the new behavior?
Card header changes the display to flex and reverses the order for the title & subtitle on
iosmode.Does this introduce a breaking change?
Unknown. This may be considered a breaking change if users are adding any other elements into the
ion-card-headeror if they are already changing the order to account for iOS. If they are leaving it as title -> subtitle then this would be a fix to get it closer to native.Looking through the card api documentation it looks like we were showing them usage with the order reversed, likely for iOS but this would've been wrong for Material Design.
The kitchen sink demo (source code) also showed subtitle before title, making it wrong for Material Design.
Other information
I believe this needs some discussion before implementing it.