Skip to content

Commit

Permalink
chore: review
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Zeinstra committed Aug 22, 2023
1 parent a60d234 commit fa61e0e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export function NoEnterprise({
onCheckboxChange(!isCheckboxChecked);
}}
checked={isCheckboxChecked}
tabIndex={1}
/>
<ButtonClicker
onClick={() => setIsInputVisible(!isInputVisible)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const SearchAgreementInput = ({
type: "search",
value: query,
"data-testid": "agreement-search-input",
tabIndex: "1",
};
return (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export const SearchEnterpriseInput = ({
autoComplete="off"
data-testid="agreement-company-search-input"
disabled={isDisabled}
tabIndex={1}
/>
</Box>
<Box>
Expand All @@ -104,6 +105,7 @@ export const SearchEnterpriseInput = ({
autoComplete="off"
data-testid="agreement-postal-code-search-input"
disabled={isDisabled}
tabIndex={1}
/>
<SubmitIcon
type="submit"
Expand All @@ -115,6 +117,7 @@ export const SearchEnterpriseInput = ({
variant="secondary"
data-testid="agreement-company-search-button"
disabled={isDisabled}
tabIndex={1}
>
<MobileOnly>Rechercher</MobileOnly>
<StyledSearchIcon />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styled from "styled-components";
import { Button, Heading } from "@socialgouv/cdtn-ui";
import { Button, theme } from "@socialgouv/cdtn-ui";

type IntroductionProps = {
onClick: () => void;
Expand All @@ -16,8 +16,14 @@ export const Introduction = ({ onClick }: IntroductionProps): JSX.Element => {
);
};

const StyledHeading = styled(Heading)`
const { fonts } = theme;

const StyledHeading = styled.span`
text-align: center;
color: ${({ theme }) => theme.title};
font-weight: 600;
font-size: ${fonts.sizes.headings.small};
margin: 32px auto 20px;
`;

const StyledButton = styled(Button)`
Expand Down

0 comments on commit fa61e0e

Please sign in to comment.