-
Notifications
You must be signed in to change notification settings - Fork 204
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
Add config option to display a clean onboarding look to users. #580
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div class="sheet" ng-if="vm.showSidebarTutorial()"> | ||
<div class="sheet" ng-if="vm.showSidebarTutorial() && !vm.cleanOnboardingThemeEnabled"> | ||
<i class="close h-icon-close" role="button" title="Close" | ||
ng-click="vm.dismiss()"></i> | ||
<h1 class="sidebar-tutorial__header">How to get started</h1> | ||
|
@@ -41,3 +41,36 @@ <h1 class="sidebar-tutorial__header">How to get started</h1> | |
</li> | ||
</ol> | ||
</div> | ||
<div class="sheet sheet--is-theme-clean" ng-if="vm.showSidebarTutorial() && vm.cleanOnboardingThemeEnabled"> | ||
<i class="close h-icon-close" role="button" title="Close" | ||
ng-click="vm.dismiss()"></i> | ||
<h1 class="sidebar-tutorial__header sidebar-tutorial__header--is-theme-clean"> | ||
<i class="h-icon-annotate sidebar-tutorial__header-annotate" h-branding="accentColor"></i> | ||
Start annotating | ||
</h1> | ||
<ol class="sidebar-tutorial__list"> | ||
<li class="sidebar-tutorial__list-item sidebar-tutorial__list-item--is-theme-clean"> | ||
<div class="sidebar-tutorial__list-item-content"> | ||
Select some text to | ||
<span class="sidebar-tutorial__list-item-annotate">annotate</span> | ||
<svg-icon width="3px" height="10px" class="sidebar-tutorial__list-item-cursor" name="'cursor'"></svg-icon> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
or highlight. | ||
</div> | ||
</li> | ||
<li class="sidebar-tutorial__list-item sidebar-tutorial__list-item--is-theme-clean"> | ||
<div class="sidebar-tutorial__list-item-content sidebar-tutorial__list-item-content--is-theme-clean"> | ||
Create page level notes | ||
<button class="sidebar-tutorial__list-item-new-note-btn" h-branding="ctaBackgroundColor"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm ... this isn't actually clickable so it might be a bit surprising that it has the affordances of a button (eg. a cursor pointer). |
||
+ New note | ||
</button> | ||
</div> | ||
</li> | ||
<li class="sidebar-tutorial__list-item sidebar-tutorial__list-item--is-theme-clean"> | ||
<div class="sidebar-tutorial__list-item-content"> | ||
View annotations through your profile | ||
<i class="h-icon-account sidebar-tutorial__list-item-profile"></i> | ||
<i class="h-icon-arrow-drop-down sidebar-tutorial__list-item-drop-down"></i> | ||
</div> | ||
</li> | ||
</ol> | ||
</div> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,16 @@ | |
font-weight: $title-font-weight; | ||
} | ||
|
||
.sidebar-tutorial__header-annotate { | ||
position: relative; | ||
top: 2px; | ||
} | ||
|
||
.sidebar-tutorial__header--is-theme-clean { | ||
color: $gray-dark; | ||
font-size: 16px; | ||
} | ||
|
||
/* We want an ordered list in which the numbers are aligned with the text | ||
above (not indented or dedented), and wrapped lines in list items are | ||
aligned with the first character of the list item (not the number, i.e | ||
|
@@ -44,10 +54,56 @@ | |
color: $gray-light; | ||
} | ||
|
||
.sidebar-tutorial__list-item--is-theme-clean { | ||
font-size: 14px; | ||
} | ||
|
||
.sidebar-tutorial__list-item--is-theme-clean::before { | ||
color: $gray-dark; | ||
} | ||
|
||
.sidebar-tutorial__list-item-content { | ||
margin-top: 1em; /* Put vertical space in-between list items, equal to the | ||
space between normal paragraphs. | ||
Note: This also puts the same amount of space above the | ||
first list item (i.e. between the list and whatever's | ||
above it). */ | ||
} | ||
|
||
.sidebar-tutorial__list-item-annotate { | ||
background-color: $highlight-color-focus; | ||
padding: 0px 3px; | ||
} | ||
|
||
.sidebar-tutorial__list-item-new-note-btn { | ||
background-color: #626262; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should use the |
||
border: none; | ||
border-radius: 3px; | ||
color: #fff; | ||
font-weight: 500; | ||
text-align: center; | ||
margin-left: 2px; | ||
} | ||
|
||
.sidebar-tutorial__list-item-drop-down { | ||
margin-left: -5px; | ||
} | ||
|
||
.sidebar-tutorial__list-item-cursor { | ||
position: relative; | ||
top: 3px; | ||
margin-left: -10px; | ||
} | ||
|
||
.sidebar-tutorial__list-item-cursor svg { | ||
width: 12px; | ||
height: 17px; | ||
} | ||
|
||
.sidebar-tutorial__list-item-content { | ||
margin-top: 16px; | ||
} | ||
|
||
.sidebar-tutorial__list-item-profile { | ||
margin-left: 4px; | ||
} |
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.
Perhaps for both consistency with how we are handling the "New note" button and also to make it clear that this isn't yet an officially supported setting, we ought to name it something like
enableExperimentalNewOnboarding
? 🤔 .The new-look onboarding actually works fine whether or not the "clean" theme is being used, so perhaps we can consider it a separate thing.