From 8e93e251d6b27e5fb717cd112a2d19375178e2ff Mon Sep 17 00:00:00 2001 From: Lucas Schoenfelder <les17@inf.ufpr.br> Date: Thu, 21 May 2020 10:30:55 -0300 Subject: [PATCH] wip missing excluir modal and PUT call to backend; now with correct colors --- src/Components/Comment.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Components/Comment.js b/src/Components/Comment.js index ac49feb7..ad125161 100644 --- a/src/Components/Comment.js +++ b/src/Components/Comment.js @@ -106,7 +106,8 @@ export default function Comment (props) { ( <React.Fragment> <div style={{marginTop : "5%", padding : "2px"}}> - <TextField + <StyledTextField + colecao={!props.recurso} id = "input-comentario" label = {"Editar Comentário"} margin = "normal" @@ -184,6 +185,17 @@ export default function Comment (props) { ) } +const StyledTextField = styled(TextField)` + label.Mui-focused { + color : ${props => props.colecao ? "rgb(103,58,183)" : "rgb(255,127,0)"}; + } + + .MuiInput-underline::after { + border-bottom: ${props => props.colecao ? "2px solid rgb(103,58,183)" : "2px solid rgb(255,127,0)"}; + } + +` + const StyledDiv = styled.div` text-align : center; .MuiButton-root { -- GitLab