Skip to content

Commit

Permalink
Fix colors and copies (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddsaura committed Jan 20, 2022
1 parent 6140036 commit 6da48c8
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 24 deletions.
5 changes: 2 additions & 3 deletions frontend/locales/ca/form.json
Expand Up @@ -9,19 +9,18 @@
"noAccount": "No tens compte?",
"fishbowl": {
"title": "Titul",
"topic": "Tema de conversa",
"day": "Data",
"selectDay": "Selecciona el dia",
"time": "Comença a les",
"selectTime": "Selecciona l'hora",
"selectTime": "Hora",
"language": "Idioma",
"hours": "h",
"minutes": "m",
"duration": "Durada",
"selectDuration": "Selecciona una durada",
"description": "Descripció (opcional)",
"timezone": "Zona horària",
"selectTimeZone": "Selecciona zona horària",
"selectTimeZone": "Zona horària",
"advancedOptions": "Opcions avançades"
},
"button": {
Expand Down
3 changes: 1 addition & 2 deletions frontend/locales/de/form.json
Expand Up @@ -18,12 +18,11 @@
"selectDuration": "Wählen Sie die Dauer",
"description": "Beschreibung (optional)",
"timezone": "Zeitzone",
"selectTimeZone": "Wählen Sie eine Zeitzone aus",
"selectTimeZone": "Zeitzone",
"day": "Datum",
"selectTime": "Wählen Sie eine Uhrzeit aus",
"selectDay": "Wählen Sie ein Tag aus",
"title": "Titel",
"topic": "Gesprächsthema",
"time": "Beginnt um",
"advancedOptions": "Erweiterte optionen"
},
Expand Down
5 changes: 2 additions & 3 deletions frontend/locales/en/form.json
Expand Up @@ -8,7 +8,6 @@
"haveAccount": "Already have an account?",
"noAccount": "No account?",
"fishbowl": {
"topic": "Conversation topic",
"title": "Title",
"day": "Date",
"selectDay": "Select day",
Expand All @@ -18,10 +17,10 @@
"hours": "h",
"minutes": "m",
"duration": "Duration",
"selectDuration": "Select Duration",
"selectDuration": "Duration",
"description": "Description (optional)",
"timezone": "Time Zone",
"selectTimeZone": "Select Time Zone",
"selectTimeZone": "Time Zone",
"advancedOptions": "Advanced Options"
},
"button": {
Expand Down
1 change: 0 additions & 1 deletion frontend/locales/es/form.json
Expand Up @@ -8,7 +8,6 @@
"haveAccount": "¿Ya tienes una cuenta?",
"noAccount": "¿No tienes cuenta?",
"fishbowl": {
"topic": "Tema de conversación",
"title": "Título",
"day": "Fecha",
"selectDay": "Selecciona el día",
Expand Down
3 changes: 1 addition & 2 deletions frontend/locales/fr/form.json
@@ -1,7 +1,6 @@
{
"defaultTitle": "Rencontre Fishbowl - {{name}}",
"fishbowl": {
"topic": "Sujet de conversation",
"title": "Titre",
"selectDay": "Sélectionnez le jour",
"language": "Langue",
Expand All @@ -18,7 +17,7 @@
"advancedOptions": "Options avancées"
},
"button": {
"createAccount": "Créez-en un!",
"createAccount": "Créez-en un !",
"createFishbowl": "Créer un fishbowl",
"recoverPassword": "Envoyer le lien de réinitialisation",
"save": "Enregistrer",
Expand Down
40 changes: 27 additions & 13 deletions frontend/ui/Form.ts
Expand Up @@ -96,7 +96,10 @@ const InputStyled = styled.div`
}
`}
svg { pointer-events: none; }
svg {
pointer-events: none;
color: ${COLOR_NEUTRO_600};
}
.dropdown-icon {
height: ${rems(16)};
Expand All @@ -113,15 +116,19 @@ const InputStyled = styled.div`
&.disabled {
.icon path,
.dropdown-icon path { fill: ${COLOR_NEUTRO_500}; }
.dropdown-icon path {
fill: ${COLOR_NEUTRO_500};
}
input:disabled,
textarea:disabled,
select:disabled {
border: 1px solid ${COLOR_NEUTRO_300};
color: ${COLOR_NEUTRO_600};
& + label { color: ${COLOR_NEUTRO_600}; }
& + label {
color: ${COLOR_NEUTRO_600};
}
.icon path {
color: ${COLOR_NEUTRO_500};
Expand All @@ -132,9 +139,13 @@ const InputStyled = styled.div`
&.withicon {
input,
select,
&.datepicker input { padding-left: ${space(6)}; }
&.datepicker input {
padding-left: ${space(6)};
}
label { left: ${space(6)}; }
label {
left: ${space(6)};
}
.icon {
height: ${space(4)};
Expand Down Expand Up @@ -168,11 +179,15 @@ const InputStyled = styled.div`
border: 1px solid ${COLOR_NEUTRO_700};
}
&.invalid { border-color: ${COLOR_RED_500}; }
&.invalid {
border-color: ${COLOR_RED_500};
}
}
input,
select { height: ${space(6.5)}; }
select {
height: ${space(6.5)};
}
textarea {
height: 100%;
Expand All @@ -189,7 +204,7 @@ const InputStyled = styled.div`
pointer-events: none;
position: absolute;
top: ${space(2.25)};
transition: .1s ease-out;
transition: 0.1s ease-out;
}
input::placeholder {
Expand All @@ -210,11 +225,10 @@ const InputStyled = styled.div`
select + label,
&.datepicker label.small {
color: ${COLOR_NEUTRO_700};
top: ${space(1.3)};
color: ${COLOR_NEUTRO_700};
top: ${space(1.3)};
${TEXT_XXS};
}
${TEXT_XXS};
}
.help {
Expand All @@ -225,7 +239,7 @@ const InputStyled = styled.div`
&:not(:last-child) .help {
margin-bottom: ${space(2)};
}
}
`;

const DatePickerStyled = styled(InputStyled)`
Expand Down

0 comments on commit 6da48c8

Please sign in to comment.