Skip to content

Commit

Permalink
[web] Improve accessible texts used for skeletons
Browse files Browse the repository at this point in the history
According to #1045 (comment)
  • Loading branch information
dgdavid committed Feb 22, 2024
1 parent ba0114d commit 0c3419b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions web/src/components/storage/ProposalDeviceSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const InstallationDeviceField = ({
};

if (isLoading) {
return <Skeleton screenreaderText={_("Loading selected device")} width="25%" />;
return <Skeleton screenreaderText={_("Waiting for information about selected device")} width="25%" />;
}

const description = _("Select the device for installing the system.");
Expand Down Expand Up @@ -330,7 +330,7 @@ created in a logical volume of the system volume group.");
);
};

if (isLoading) return <Skeleton width="25%" />;
if (isLoading) return <Skeleton screenreaderText={_("Waiting for information about LVM")} width="25%" />;

return (
<div className="split">
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/storage/ProposalDeviceSection.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ describe("ProposalDeviceSection", () => {

it("renders a loading hint", () => {
plainRender(<ProposalDeviceSection {...props} />);
screen.getByText("Loading selected device");
screen.getByText("Waiting for information about selected device");
});
});
});
Expand Down

0 comments on commit 0c3419b

Please sign in to comment.