-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Campaign/applytheme center channel bg #7373
Conversation
Address PR feedback
…. 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`.
…. 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]>
…. 641 (#6800) Signed-off-by: Baibhab Debnath <[email protected]>
- 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.
…b.com/d-schaffer/mattermost-webapp into campaign/applytheme_center-channel-bg
- variable should have transparency
@@ -84,6 +84,7 @@ body { | |||
@include clearfix; | |||
height: 100%; | |||
position: relative; | |||
background: var(--center-channel-bg); |
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.
@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. 🤷♂️
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.
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); |
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.
@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); |
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.
@jgilliam17, I honestly can't find this anywhere in actual use anymore. @devinbinnie, @hmhealey, how about you guys?
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.
I found a reference to nav-tabs
in QuickSwitchModal
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.
See below comment.
> .arrow { | ||
&:after { | ||
border-bottom-color: var(--center-channel-bg); | ||
} | ||
} | ||
} | ||
|
||
&.left { | ||
> .arrow { | ||
&:after { | ||
border-left-color: var(--center-channel-bg); | ||
} | ||
} |
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.
@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.
&:hover { | ||
color: var(--center-channel-bg); | ||
} | ||
background: var(--center-channel-bg); |
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.
@jgilliam17, for the 'Show More' button on long posts, the text colour on hover and the default background colour.
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); |
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.
@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.
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.
There's new tags for WebKit browsers at least: ::-webkit-scrollbar-*
I assume there are similar ones for Firefox
.app__body { | ||
.modal-tabs { | ||
.nav-tabs > li { | ||
background-color: var(--center-channel-bg); | ||
} | ||
} | ||
} |
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.
@jgilliam17, ditto to the one above ... I honestly can't find this anywhere in actual use anymore. @devinbinnie, @hmhealey, how about you guys?
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.
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.
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.
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 😛
@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 |
/update-branch |
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.
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.
Test server destroyed |
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