Skip to content

Commit

Permalink
Merge pull request #1154 from SocialGouv/fix/role-img-tag-status
Browse files Browse the repository at this point in the history
fix: role img tag status
  • Loading branch information
octo-theg authored Dec 6, 2023
2 parents 1e5aa3e + 8d93af7 commit fad9383
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions components/agenda-jeune/AgendaRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export default function AgendaRow({ entree, idBeneficiaire }: AgendaRowProps) {
iconName={IconName.Lock}
iconLabel='Informations de la session non modifiables'
backgroundColor='accent_1_lighten'
role='img'
/>
)}

Expand All @@ -86,7 +85,6 @@ export default function AgendaRow({ entree, idBeneficiaire }: AgendaRowProps) {
color='accent_2'
backgroundColor='accent_2_lighten'
iconName={IconName.Lock}
role='img'
/>
)}
</>
Expand Down
8 changes: 3 additions & 5 deletions components/ui/Indicateurs/Tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ interface TagProps {
className?: string
iconName?: IconName
iconLabel?: string
role?: string
}

function Tag({
Expand All @@ -19,7 +18,6 @@ function Tag({
className,
iconName,
iconLabel,
role,
}: TagProps) {
return (
<span
Expand All @@ -32,9 +30,9 @@ function Tag({
name={iconName}
aria-hidden={!iconLabel ? true : false}
className='h-5 w-5 mr-1 fill-[currentColor]'
aria-label={iconLabel}
role={role ? role : ''}
title={iconLabel ? iconLabel : ''}
aria-label={iconLabel ? iconLabel : undefined}
title={iconLabel ? iconLabel : undefined}
role='img'
/>
)}
{label}
Expand Down

0 comments on commit fad9383

Please sign in to comment.