-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Support User: Highlight Masterbar when active #2975
Conversation
105b1b3
to
4bf9a9c
Compare
4bf9a9c
to
adea312
Compare
@@ -9,6 +9,16 @@ import { | |||
SUPPORT_USER_RESTORE, | |||
} from 'state/action-types'; | |||
|
|||
export function isSupportUser( state = false, action ) { |
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.
Should this be a selector instead?
It's in-progress, but just a drive by with a couple of notes on the current state:
|
I tested this a bit and it worked well in terms of highlighting the masterbar. I did see some js errors and some rendering weirdness, but we think that's unrelated to this set of changes, and we're going to track it separately. If we can get the other feedback addressed and ping for another review once fixes are in, I'd love to get this landed in short order. |
47ee5f8
to
95cec5e
Compare
@@ -145,6 +152,7 @@ export default connect( | |||
const { isLoading, section, hasSidebar, chunkName } = state.ui; | |||
return { | |||
isLoading, | |||
isSupportUser: isSupportUser( state ), |
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.
This looks much better to me, thanks.
🚢 tested on Chrome, FF, Safari. |
…ighlight Support User: Highlight Masterbar when active
When activating support user mode, the Masterbar is highlighted to remind you that you're not in a normal mode and could make changes that you didn't mean to.
Normal
Support user active