Skip to content

Commit

Permalink
fix(declaration-a11y): fix alert types (#126)
Browse files Browse the repository at this point in the history
* fix(declaration-a11y): fix alert types

* fix snap
  • Loading branch information
Julien Bouquillon authored Jan 17, 2022
1 parent 20cd8c5 commit 01db0eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions report/www/src/__tests__/__snapshots__/Url.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ Array [
</div>
<div>
<div
className="fr-alert fr-alert--error"
className="fr-alert fr-alert--info"
role="alert"
>
<p
Expand Down Expand Up @@ -3368,7 +3368,7 @@ Array [
</div>
<div>
<div
className="fr-alert fr-alert--error"
className="fr-alert fr-alert--info"
role="alert"
>
<p
Expand Down
4 changes: 2 additions & 2 deletions report/www/src/components/DeclarationA11y.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ export const DeclarationA11y: React.FC<DeclarationA11yProps> = ({ data }) => {
),
"Accessibilité : partiellement conforme": (
<Alert
type="warning"
type="success"
description={
<div>La mention a bien été detectée : Partiellement conforme</div>
}
/>
),
"Accessibilité : non conforme": (
<Alert
type="error"
type="info"
description={<div>La mention a bien été detectée : Non conforme</div>}
/>
),
Expand Down

0 comments on commit 01db0eb

Please sign in to comment.