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

Top bar in page #1670

Merged
merged 1 commit into from
Oct 30, 2023
Merged

Top bar in page #1670

merged 1 commit into from
Oct 30, 2023

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented Oct 27, 2023

Small PR to be able to add optional Back button in HeaderFooterPage.

Should not break any screenshot tests.

@bmarty bmarty requested a review from a team as a code owner October 27, 2023 14:52
@bmarty bmarty requested review from julioromano and removed request for a team October 27, 2023 14:52
scrollBehavior = scrollBehavior,
)
} else {
Spacer(modifier = modifier.height(64.0.dp /* TopAppBarSmallTokens.ContainerHeight */))
Copy link
Member Author

Choose a reason for hiding this comment

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

TopAppBarSmallTokens.ContainerHeight is internal, so cannot use it.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 27, 2023

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/C96KF2

@@ -42,21 +45,26 @@ fun TopAppBar(
actions: @Composable RowScope.() -> Unit = {},
windowInsets: WindowInsets = TopAppBarDefaults.windowInsets,
colors: TopAppBarColors = TopAppBarDefaults.topAppBarColors(),
scrollBehavior: TopAppBarScrollBehavior? = null
scrollBehavior: TopAppBarScrollBehavior? = null,
isVisible: Boolean = true,
Copy link
Contributor

Choose a reason for hiding this comment

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

This feels odd.

It shouldn't be the responsibility of any composable to provide a way to hide itself.
If you don't want it to be shown you should wrap it with an if just outside the point where you call it.

Maybe I didn't understand your intention here.

Copy link
Member Author

Choose a reason for hiding this comment

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

You're right, I will update remove that.

@sonarcloud
Copy link

sonarcloud bot commented Oct 27, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (b046493) 63.24% compared to head (99fbb19) 63.24%.
Report is 5 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1670      +/-   ##
===========================================
- Coverage    63.24%   63.24%   -0.01%     
===========================================
  Files         1230     1230              
  Lines        31753    31757       +4     
  Branches      6537     6539       +2     
===========================================
+ Hits         20082    20084       +2     
  Misses        8667     8667              
- Partials      3004     3006       +2     
Files Coverage Δ
...ries/designsystem/atomic/pages/HeaderFooterPage.kt 69.56% <93.33%> (-4.12%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bmarty bmarty merged commit 9472081 into develop Oct 30, 2023
14 of 17 checks passed
@bmarty bmarty deleted the feature/bma/topBarInPage branch October 30, 2023 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants