Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

[Bug]: synced tab's title not show completely when switching tab from private to synced #26253

Closed
jackyzy823 opened this issue Jul 30, 2022 · 4 comments
Labels
🐞 bug Crashes, Something isn't working, ..

Comments

@jackyzy823
Copy link

jackyzy823 commented Jul 30, 2022

Steps to reproduce

  1. Sign in into your fxa account.
  2. Switch To Private Tab Tray
  3. Then switch to Synced Tab Tray
  4. Click "Sync" button

Expected behaviour

Titles are displayed completely and correctly.

Actual behaviour

Only emojis will show. the other text in title is not showed.
Screenshot_20220730-004105__01__01

Device name

No response

Android version

Android 11

Firefox release type

Firefox Beta

Firefox version

103.0.0-beta.5

Device logs

No response

Additional information

To prove my synced tabs have titles.
Here's the screenshot that switch from normal tab to synced tab. It displays correctly and completely.
Screenshot_20220730-105322__01__01

┆Issue is synchronized with this Jira Task

@jackyzy823 jackyzy823 added needs:triage Issue needs triage 🐞 bug Crashes, Something isn't working, .. labels Jul 30, 2022
@jackyzy823
Copy link
Author

Update: Dark Theme do not have this bug. Only happens on LightTheme.

@jackyzy823
Copy link
Author

Ok , I might figure out why.

The background of SyncedTabsList have only two options (maybe because there's no Modifier of background here or maybe based on the logic of getTheme. I'm not familiar with Compose stuff)

FirefoxTheme {
SyncedTabsList(
syncedTabs = tabs ?: emptyList(),
taskContinuityEnabled = composeView.context.settings().enableTaskContinuityEnhancements,
onTabClick = navigationInteractor::onSyncedTabClicked,
)
}

the text of title have three options Light/Dark/Private. may be based on the logic of :
fun getTheme() =
if (!inComposePreview && LocalContext.current.settings().lastKnownMode.isPrivate) {
Private
} else if (isSystemInDarkTheme()) {
Dark
} else {
Light
}
.

So It would be invisible if text is Private (textPrimary = LightGrey05 0xFFFBFBFE , #FBFBFE )

textPrimary = PhotonColors.LightGrey05,
and backgroud is Light (PhotonColors.LightGrey10 0xFFF9F9FB , #F9F9FB)
layer1 = PhotonColors.LightGrey10,

So 1) either make background have three options ( which will make user confused why synced tabs are displayed in Purple background (Private Mode) ) , or 2) make the text in Private do not conflict with background in Light.

Could anyone helps on this issue ? @gabrielluong @Alexandru2909

Thanks.

@gabrielluong
Copy link
Member

I believe @MozillaNoah is working on a fix for the private theme colors showing up in the tabs tray in #22558. Basically, the tabs tray only shows the dark/light theme, but in the synced tabs we have started to use the design system color tokens which will show the private theme colors when the design of the tabs tray wasn't suppose to.

@MozillaNoah MozillaNoah removed the needs:triage Issue needs triage label Aug 8, 2022
@MozillaNoah
Copy link
Contributor

MozillaNoah commented Aug 8, 2022

hey, @jackyzy823, thanks for filing this issue! As @gabrielluong pointed out, I'm actually in the middle of working on fix for this right now! I'm going to go ahead and close this, but a fix will be out soon! Here's the pull request.

@MozillaNoah MozillaNoah closed this as not planned Won't fix, can't repro, duplicate, stale Aug 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Crashes, Something isn't working, ..
Projects
None yet
Development

No branches or pull requests

3 participants