Skip to content

Commit

Permalink
Bruk aria-labels på meldinger (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
tu55eladd authored Dec 4, 2023
1 parent c410a64 commit 98e27c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/view/melding/Melding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function Melding(props: Props) {
const avatarBgColor = erFraSegSelv ? 'rgba(181, 241, 255, 1)' : 'rgba(255, 255, 255, 1)';

return (
<div className="mt-4">
<div className="mt-4" role="row">
<BodyShort className="hidden">{accessibleText(erBruker, erMeldingFraBruker)}</BodyShort>
<Chat
timestamp={toppTekst}
Expand Down
1 change: 1 addition & 0 deletions src/view/melding/Meldinger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export function Meldinger(props: Props) {
className="grow bg-gray-100 px-4 flex xl:justify-center"
ref={meldingListRef}
tabIndex={0}
role="grid"
>
<div className="grow xl:w-full xl:max-w-248 flex flex-col justify-end">
<Heading level="3" size={'medium'} className="hidden">
Expand Down

0 comments on commit 98e27c3

Please sign in to comment.