Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rede De Mentores
Frontend
Commits
147fc38d
Commit
147fc38d
authored
Jun 29, 2020
by
Gustavo Vidaletti
Browse files
Checkbox Claro (para listagem de usuarios)
parent
31899178
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/components/RedeCheckbox/RedeCheckbox.jsx
View file @
147fc38d
import
React
from
'
react
'
;
import
styled
from
'
styled-components
'
;
import
styled
,
{
css
}
from
'
styled-components
'
;
import
COLOR
from
'
../../utils/colors.constants
'
;
...
...
@@ -17,8 +17,7 @@ const RedeCheckbox = styled(Checkbox)`
text-align: center;
align-items: center;
justify-content: center;
border: 3px solid
${
COLOR
.
AZUL
}
;
border: 3px solid
${
COLOR
.
BRANCO
}
;
border: 3px solid
${(
props
)
=>
(
props
.
claro
?
COLOR
.
BRANCO
:
COLOR
.
AZUL
)}
;
&:focus {
outline: none;
...
...
@@ -26,8 +25,7 @@ const RedeCheckbox = styled(Checkbox)`
&:checked {
&:after {
color:
${
COLOR
.
AZUL
}
;
color:
${
COLOR
.
BRANCO
}
;
color:
${(
props
)
=>
(
props
.
claro
?
COLOR
.
BRANCO
:
COLOR
.
AZUL
)}
;
position: absolute;
content: '✔';
}
...
...
src/pages/listagemUsuarios/listagemUsuarios.jsx
View file @
147fc38d
...
...
@@ -71,6 +71,7 @@ function ListagemUsuarios() {
id
=
"mentores"
checked
=
{
checkMentor
}
onChange
=
{
(
evt
)
=>
setCheckMentor
(
evt
.
target
.
checked
)
}
claro
/>
{
/* eslint-disable-next-line jsx-a11y/label-has-associated-control */
}
<
label
htmlFor
=
"mentores"
style
=
{
{
marginLeft
:
'
5px
'
}
}
>
...
...
@@ -82,6 +83,7 @@ function ListagemUsuarios() {
id
=
"mentorados"
checked
=
{
checkMentorado
}
onChange
=
{
(
evt
)
=>
setCheckMentorado
(
evt
.
target
.
checked
)
}
claro
/>
{
/* eslint-disable-next-line jsx-a11y/label-has-associated-control */
}
<
label
htmlFor
=
"mentorados"
style
=
{
{
marginLeft
:
'
5px
'
}
}
>
...
...
src/pages/mentorias/StyledComponents/CaminhoAp.jsx
View file @
147fc38d
...
...
@@ -5,7 +5,7 @@ const CaminhoAp = styled.div`
justify-content: flex-start;
align-self: stretch;
margin-left: 250px;
margin-top:
5px
;
margin-top:
0
;
padding-bottom: 10px;
@media only screen and (max-width: 768px) {
...
...
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