Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Campaign/applytheme center channel bg #7373

Merged
merged 20 commits into from
Jan 27, 2021

Conversation

deanwhillier
Copy link
Contributor

Summary

ApplyTheme Campaign: This PR completes the merge of the theme.centerChannelBg commits from the campaign branch.

Dev approval for the changes was completed on the original PR(s), so we are just looking for rubber stamp approvals by dev's to satisfy merge requirements.

As QA was skipped on PR merges into campaign branches, this PR will need proper QA before merging. See below for details on what to QA for this PR.

Ticket Link

Related Pull Requests

See individual tickets for original PRs

d-schaffer and others added 18 commits October 9, 2020 00:37
…. 631 (#6733)

* migrated call to changeCss for .app__body .popover.left>.arrow:after

* fix: replace v with var in sass/components/_popover.scss
…. 633 (#6732)

* migrated changeCss to css variable for .app__body .form-control

* replace var with v in _forms.scss
Replace Javascript variable `theme.centerChannelBg` with CSS variable
`--center-channel-bg`.
…. 621 (#15888) (#6771)

Remove the line as it is already taken into account unconditionally at line 623 thanks to '.app__body .post .Menu .MenuItem' selector
When this was added in commit c8ae25a cited selector wasn't present
…. 629 (#6734)

* migrated call to changeCss for .app__body .popover.bottom>.arrow:after

* fix: replace v with var for .app__body .popover.bottom>.arrow:after

Co-authored-by: Hossein Ahmadian-Yazdi <[email protected]>

* fix: addressed review comments for #6734

Co-authored-by: Hossein Ahmadian-Yazdi <[email protected]>
…. 668 (#6741)

* Update utils.jsx

* Update _post.scss

* Update utils.jsx

* Update utils.jsx

* Update sass/components/_post.scss

Co-authored-by: Devin Binnie <[email protected]>

Co-authored-by: Devin Binnie <[email protected]>
Co-authored-by: Dean Whillier <[email protected]>
)

* change #channel*view.channel-view background to use css variables

* change css selectors

* change css selector to .channel-view
- was added back during merge conflict resolution
- technically not even used because of the `display: none` on the parent `.arrow` container, but fixing in case it’s used again in the future.
- variable should have transparency
@deanwhillier deanwhillier added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Jan 22, 2021
@deanwhillier deanwhillier added the Work in Progress Not yet ready for review label Jan 22, 2021
@@ -84,6 +84,7 @@ body {
@include clearfix;
height: 100%;
position: relative;
background: var(--center-channel-bg);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jgilliam17, this affects the background colour of the posts area. Interestingly there are about 5 layers on top with the same colour defined, so not sure it will ever come into play. 🤷‍♂️

Copy link
Member

Choose a reason for hiding this comment

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

That really sounds like our CSS 😛

@@ -163,6 +163,7 @@
.form-control {
color: v(center-channel-color);
border-color: rgba(var(--center-channel-color-rgb), 0.16);
background: v(center-channel-bg);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jgilliam17, this one affects input field backgrounds

@@ -723,7 +723,7 @@
font-weight: 900;
justify-content: center;
align-items: center;

background: var(--center-channel-bg);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jgilliam17, I honestly can't find this anywhere in actual use anymore. @devinbinnie, @hmhealey, how about you guys?

Copy link
Member

Choose a reason for hiding this comment

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

I found a reference to nav-tabs in QuickSwitchModal

Copy link
Member

Choose a reason for hiding this comment

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

See below comment.

Comment on lines +84 to +96
> .arrow {
&:after {
border-bottom-color: var(--center-channel-bg);
}
}
}

&.left {
> .arrow {
&:after {
border-left-color: var(--center-channel-bg);
}
}
Copy link
Contributor Author

@deanwhillier deanwhillier Jan 22, 2021

Choose a reason for hiding this comment

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

@jgilliam17, these aren't used as the .arrow is permanently hidden with display: none; just a few lines up. I've left them in for posterity's sake.

Comment on lines +1851 to +1854
&:hover {
color: var(--center-channel-bg);
}
background: var(--center-channel-bg);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jgilliam17, for the 'Show More' button on long posts, the text colour on hover and the default background colour.

Comment on lines +22 to +25
scrollbar-face-color: rgba(var(--center-channel-bg-rgb), .1);
scrollbar-highlight-color: #7D7E94;
scrollbar-shadow-color: #2D2C4D;
scrollbar-track-color: rgba(0, 0, 0, .1);
scrollbar-track-color: rgba(var(--center-channel-bg-rgb), .1);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jgilliam17, I think these only apply to Windows and possibly only IE, so may not be needed anymore. Probably best to check Edge and the other Windows browsers. They supposedly change scrollbar colours, possibly of the scrollbar for posts.

Copy link
Member

Choose a reason for hiding this comment

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

There's new tags for WebKit browsers at least: ::-webkit-scrollbar-*
I assume there are similar ones for Firefox

Comment on lines +110 to +116
.app__body {
.modal-tabs {
.nav-tabs > li {
background-color: var(--center-channel-bg);
}
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jgilliam17, ditto to the one above ... I honestly can't find this anywhere in actual use anymore. @devinbinnie, @hmhealey, how about you guys?

Copy link
Member

Choose a reason for hiding this comment

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

In the context of modal-tabs I can't find reference to it either. Would be worth making sure it's not used by QuickSwitchModal but otherwise we can remove.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I investigated the QuickSwitchModal. modal-tabs and nav-tabs don't seem to be used together here or anywhere else. Additionally, the tabs in the QuickSwitchModal are manually disabled (components/quick_switch_modal/index.tsx, ln. 14).

Just wanted to make sure I didn't miss anything 😛

@deanwhillier deanwhillier removed the Work in Progress Not yet ready for review label Jan 22, 2021
@deanwhillier
Copy link
Contributor Author

@jgilliam17, this other PR was merged directly to master and should have been a part of this PR. Might be a good idea to give it a quick once over as well even though it's been in the wild for some time now. It's the background colour of the heading when you search for channels using in: in the search bar. I'm not really sure what the purpose of it is though as the overall background is the same colour.

@jgilliam17 jgilliam17 added the Setup Cloud Test Server Setup a test server using Mattermost Cloud label Jan 22, 2021
@hmhealey hmhealey removed the 2: Dev Review Requires review by a core commiter label Jan 26, 2021
@deanwhillier
Copy link
Contributor Author

/update-branch

Copy link
Contributor

@jgilliam17 jgilliam17 left a comment

Choose a reason for hiding this comment

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

Thanks @deanwhillier
Tested, looks to merge.

  • Verified PR 6735 that has been already merged, background heading color when you search for channels using in: in the search bar - as expected.
  • Verified background color of the posts area, input field backgrounds
    and ‘Show More' button on long posts, the text color on hover and the default background color.
  • Verified scroll bars on Windows, for both posts and sidebar.

@jgilliam17 jgilliam17 added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester Setup Cloud Test Server Setup a test server using Mattermost Cloud labels Jan 27, 2021
@mm-cloud-bot
Copy link

Test server destroyed

@deanwhillier deanwhillier merged commit dd56e65 into master Jan 27, 2021
@deanwhillier deanwhillier deleted the campaign/applytheme_center-channel-bg branch January 27, 2021 19:24
@amyblais amyblais added this to the v5.33 milestone Jan 27, 2021
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Jan 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.