Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
86a3578f
Commit
86a3578f
authored
Nov 02, 2021
by
Lyza Danger Gardner
Committed by
Lyza Gardner
Nov 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `Icon` in `Tutorial`
parent
96f65fa9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Tutorial.js
src/sidebar/components/Tutorial.js
+5
-2
Tutorial.scss
src/styles/sidebar/components/Tutorial.scss
+0
-3
No files found.
src/sidebar/components/Tutorial.js
View file @
86a3578f
import
{
Svg
Icon
}
from
'@hypothesis/frontend-shared'
;
import
{
Icon
}
from
'@hypothesis/frontend-shared'
;
import
{
isThirdPartyService
}
from
'../helpers/is-third-party-service'
;
import
{
isThirdPartyService
}
from
'../helpers/is-third-party-service'
;
import
{
withServices
}
from
'../service-context'
;
import
{
withServices
}
from
'../service-context'
;
...
@@ -15,7 +15,10 @@ import { withServices } from '../service-context';
...
@@ -15,7 +15,10 @@ import { withServices } from '../service-context';
function
TutorialInstruction
({
commandName
,
iconName
})
{
function
TutorialInstruction
({
commandName
,
iconName
})
{
return
(
return
(
<
span
className
=
"Tutorial__instruction"
>
<
span
className
=
"Tutorial__instruction"
>
<
SvgIcon
name
=
{
iconName
}
inline
=
{
true
}
className
=
"Tutorial__icon"
/>
<
Icon
name
=
{
iconName
}
classes
=
"hyp-u-margin--right--1 hyp-u-color--grey-6 u-inline Tutorial__icon"
/>
<
em
>
{
commandName
}
<
/em
>
<
em
>
{
commandName
}
<
/em
>
<
/span
>
<
/span
>
);
);
...
...
src/styles/sidebar/components/Tutorial.scss
View file @
86a3578f
...
@@ -8,10 +8,7 @@
...
@@ -8,10 +8,7 @@
}
}
&
__icon
{
&
__icon
{
@include
utils
.
icon--inline
;
margin-right
:
1px
;
margin-bottom
:
-1px
;
// Pull the icon a little toward the baseline
margin-bottom
:
-1px
;
// Pull the icon a little toward the baseline
color
:
var
.
$grey-5
;
}
}
&
__instruction
{
&
__instruction
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment