-
Notifications
You must be signed in to change notification settings - Fork 273
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
feat(ui5-dynamic-page-title): implement snapped title on mobile #9898
Merged
Conversation
This file contains 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
kgogov
force-pushed
the
feat-dp-snapped-title-on-mobile
branch
2 times, most recently
from
September 19, 2024 15:07
4c95948
to
d61f6d6
Compare
kgogov
force-pushed
the
feat-dp-snapped-title-on-mobile
branch
3 times, most recently
from
September 25, 2024 08:52
8fbc626
to
a2bb1f1
Compare
plamenivanov91
requested changes
Sep 25, 2024
plamenivanov91
requested changes
Sep 25, 2024
- Introduced `snappedTitleOnMobile` property to display a simplified title on mobile when the header is snapped. - Added `snappedTitleOnMobileText` to define the text for the mobile-specific snapped title. - This feature optimizes title display on small screens, improving mobile usability. - Clicking the snapped title on mobile expands the header. - On non-mobile devices, the standard title is displayed, ignoring the mobile-specific title.
- Addressed review comments by changing the implementation of the snapped title on mobile. - Replaced properties with a slot for better flexibility and maintainability.
kgogov
force-pushed
the
feat-dp-snapped-title-on-mobile
branch
from
September 26, 2024 09:33
381cc8f
to
22e26e1
Compare
…bile Refactored the implementation to pass the "snappedTitleOnMobile" state from parent to child. This change ensures proper state management, addressing previous review comments.
kgogov
force-pushed
the
feat-dp-snapped-title-on-mobile
branch
from
September 26, 2024 09:48
22e26e1
to
982ec0a
Compare
plamenivanov91
approved these changes
Sep 26, 2024
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.
Overview
We have enhanced the
ui5-dynamic-page-title
component to improve the user experience on mobile devices when theDynamicPageTitle
is in its collapsed (snapped) state. You can now display a simplified, single-line title specifically designed for mobile screens. This feature optimizes the use of limited screen space on mobile devices by showing a concise title that remains always visible.New Slot
snappedTitleOnMobile
ui5-title
component) that will be displayed as the title on mobile devices when the header is in its snapped state. The content set in this slot overrides other title content during the snapped state on mobile devices.Usage
To utilize this feature, place a
ui5-title
into thesnappedTitleOnMobile
slot of theui5-dynamic-page-title
component. This content will be displayed on mobile devices when the header is snapped.Example