🎨 améliore l'usabilité du guide

- Enleve l'autoscroll
- Place tous les boutons à gauche
- Change le style du bouton recommencer
pull/425/head
Johan Girod 2018-11-20 13:14:57 +01:00
parent c5b3393aab
commit c03bcbc2ea
6 changed files with 18 additions and 23 deletions

View File

@ -139,9 +139,8 @@
.ui__.skip-button {
opacity: 0.6;
border: none;
padding: 0.6rem 0;
margin-top: 0;
margin-bottom: 0;
padding: 0;
color: inherit;
}

View File

@ -34,7 +34,8 @@ h1 {
font-size: 2.8rem;
}
h2 {
margin-top: 2rem;
margin-top: 1rem;
margin-bottom: 1rem;
font-size: 1.7rem;
}

View File

@ -20,7 +20,6 @@ button {
.ui__.answer-group {
display: flex;
justify-content: flex-end;
align-items: center;
}
@media (max-width: 500px) {

View File

@ -90,6 +90,13 @@ const Liability = ({
</li>
</ul>
<div className="ui__ answer-group">
<button
onClick={() => {
chooseCompanyLiability('LIMITED_LIABILITY')
}}
className="ui__ button">
<T k="responsabilité.bouton3">Responsabilité limitée</T>
</button>
<button
onClick={() => {
chooseCompanyLiability('UNLIMITED_LIABILITY')
@ -101,13 +108,6 @@ const Liability = ({
<T k="responsabilité.bouton2">Responsabilité illimitée</T>
)}
</button>
<button
onClick={() => {
chooseCompanyLiability('LIMITED_LIABILITY')
}}
className="ui__ button">
<T k="responsabilité.bouton3">Responsabilité limitée</T>
</button>
</div>
<CompanyStatusNavigation onSkip={() => chooseCompanyLiability(null)} />
{/* this is an economic activity conducted by a single natural person, in his own name ; */}

View File

@ -43,15 +43,14 @@ const PreviousAnswers = ({
return (
<>
{!!Object.keys(legalStatus).length && (
<button onClick={goToCompanyStatusChoice} className="ui__ link-button">
<T>Recommencer</T>
<button
onClick={goToCompanyStatusChoice}
className="ui__ skip-button left">
<T>Recommencer</T>
</button>
)}
{Object.values(legalStatus).some(answer => answer !== null) && (
<>
<h2>
<T>Vos choix : </T>
</h2>
<ul>
<Animate.fromBottom>
{Object.entries(legalStatus).map(

View File

@ -3,7 +3,6 @@ import { withI18n } from 'react-i18next'
import { connect } from 'react-redux'
import { Redirect, Route, Switch } from 'react-router'
import * as Animate from 'Ui/animate'
import { ScrollToElement } from '../../../../components/utils/Scroll'
import sitePaths from '../../sitePaths'
import AfterRegistration from './AfterRegistration'
import CreationChecklist from './CreationChecklist'
@ -18,11 +17,9 @@ import PickLegalStatus from './PickLegalStatus'
import YourCompany from './YourCompany'
const withAnimation = Component => {
const AnimateRouteComponent = (...props) => (
<ScrollToElement onlyIfNotVisible>
<Animate.fromBottom>
<Component {...props} />
</Animate.fromBottom>
</ScrollToElement>
<Animate.fromBottom>
<Component {...props} />
</Animate.fromBottom>
)
return AnimateRouteComponent
}