Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pubsweet
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Giorgio Sironi
pubsweet
Commits
c1f4f6c1
Commit
c1f4f6c1
authored
7 years ago
by
julientaq
Browse files
Options
Downloads
Patches
Plain Diff
Updated textfield and remove author prop.
parent
f337e351
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/ui/src/atoms/TextField.js
+2
-1
2 additions, 1 deletion
packages/ui/src/atoms/TextField.js
packages/ui/src/atoms/TextField.local.scss
+18
-14
18 additions, 14 deletions
packages/ui/src/atoms/TextField.local.scss
with
20 additions
and
15 deletions
packages/ui/src/atoms/TextField.js
+
2
−
1
View file @
c1f4f6c1
...
@@ -10,15 +10,16 @@ const TextField = ({
...
@@ -10,15 +10,16 @@ const TextField = ({
value
=
''
,
value
=
''
,
onBlur
,
onBlur
,
onChange
,
onChange
,
readonly
,
})
=>
(
})
=>
(
<
label
className
=
{
classes
.
root
}
>
<
label
className
=
{
classes
.
root
}
>
{
label
&&
<
span
className
=
{
classes
.
text
}
>
{
label
}
<
/span>
}
{
label
&&
<
span
className
=
{
classes
.
text
}
>
{
label
}
<
/span>
}
<
input
<
input
className
=
{
classes
.
input
}
name
=
{
name
}
name
=
{
name
}
onBlur
=
{
onBlur
}
onBlur
=
{
onBlur
}
onChange
=
{
onChange
}
onChange
=
{
onChange
}
placeholder
=
{
placeholder
}
placeholder
=
{
placeholder
}
readOnly
=
{
readonly
}
required
=
{
required
}
required
=
{
required
}
type
=
{
type
}
type
=
{
type
}
value
=
{
value
}
value
=
{
value
}
...
...
This diff is collapsed.
Click to expand it.
packages/ui/src/atoms/TextField.local.scss
+
18
−
14
View file @
c1f4f6c1
...
@@ -11,36 +11,40 @@
...
@@ -11,36 +11,40 @@
margin-right
:
10px
;
margin-right
:
10px
;
}
}
input
{
.root
input
{
--color-back
:
v
ar
(
--
color-primary
)
;
--color-back
:
d
ar
kgray
;
background
:
linear-gradient
(
to
right
,
transparent
0%
,
transparent
2px
,
white
2px
,
white
4px
)
,
linear-gradient
(
white
0%
,
white
90%
,
var
(
--
color-back
)
95%
,
white
100%
);
background-position
:
0
0
,
0
.2em
0
;
background-repeat
:
repeat-X
,
repeat-Y
;
background-size
:
7px
100%
,
100%
1
.3em
;
border
:
none
;
border
:
none
;
border-left
:
1px
solid
darkgrey
;
border-left
:
1px
solid
darkgrey
;
caret-color
:
var
(
--
color-primary
);
caret-color
:
var
(
--
color-primary
);
flex
:
1
;
flex
:
1
;
font-family
:
var
(
--
font-local
);
font-family
:
var
(
--
font-local
)
,
serif
;
font-size
:
inherit
;
font-size
:
inherit
;
max-width
:
100%
;
max-width
:
100%
;
padding
:
0
0
.5em
;
padding
:
0
0
.5em
;
&
:hover
,
&
:hover
,
&
:focus
{
&
:focus
{
background
:
linear-gradient
(
to
right
,
transparent
0%
,
transparent
2px
,
white
2px
,
white
4px
)
,
linear-gradient
(
white
0%
,
white
90%
,
var
(
--
color-back
)
95%
,
white
100%
);
background-position
:
0
0
,
0
.2em
0
;
background-repeat
:
repeat-X
,
repeat-Y
;
background-size
:
7px
100%
,
100%
1
.8em
;
border-color
:
transparent
;
border-color
:
transparent
;
box-shadow
:
none
;
box-shadow
:
none
;
outline-style
:
none
;
outline-style
:
none
;
}
}
&
:hover
{
--color-back
:
var
(
--
color-primary
);
}
&
:focus
{
&
:focus
{
--color-back
:
#aaa
;
--color-back
:
#aaa
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment