Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,12 @@ const ExpandableLicenseMessageList: React.FC<{
<LicenseMessageList messages={hiddenMessages} />
</div>
</CollapsibleContent>
<CollapsibleTrigger className="text-xs mt-0.5">
{/* asChild: the trigger must not render its own <button>
around Button, which is invalid HTML and exposes two
identically named buttons to assistive tech. */}
<CollapsibleTrigger asChild>
<Button
className="text-content-primary px-0"
className="text-xs mt-0.5 text-content-primary px-0"
variant="subtle"
size="sm"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ export const KeyboardNavigation: Story = {
canvas.getByRole("combobox", { name: /^Number of developers/ }),
canvas.getByRole("combobox", { name: /^Country/ }),
canvas.getByRole("checkbox"),
canvas.getByRole("link", { name: "Learn more" }),
// The link's accessible name is its aria-label, not its text.
canvas.getByRole("link", {
name: "Learn more about external PostgreSQL databases",
}),
];

for (const element of tabOrder) {
Expand Down
Loading