Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change: [M3-7710] - Table Collapsible row icon orientation #10119

Merged
merged 3 commits into from
Jan 30, 2024
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
@@ -0,0 +1,5 @@
---
"@linode/manager": Changed
---

Table Collapsible row icon orientation ([#10119](https://github.com/linode/manager/pull/10119))
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ describe('Akamai Global Load Balancer routes page', () => {
'@getRoutes',
]);

cy.findByLabelText(`route-${routes[0].id} expand row`).click();
cy.findByLabelText(`expand route-${routes[0].id} row`).click();

ui.actionMenu.findByTitle('Action Menu for Rule 0').click();

Expand Down Expand Up @@ -600,7 +600,7 @@ describe('Akamai Global Load Balancer routes page', () => {
]);

// Expand the route table
cy.findByLabelText(`route-${routes[0].id} expand row`).click();
cy.findByLabelText(`expand route-${routes[0].id} row`).click();

// Verify all rules are shown
for (const rule of routes[0].rules) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp';
import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';
import Box from '@mui/material/Box';
import Collapse from '@mui/material/Collapse';
import IconButton from '@mui/material/IconButton';
Expand All @@ -25,12 +25,12 @@ export const CollapsibleRow = (props: Props) => {
<StyledOuterTableRow>
<TableCell component="th" scope="row">
<IconButton
aria-label={`${label} expand row`}
aria-label={`expand ${label} row`}
mjac0bs marked this conversation as resolved.
Show resolved Hide resolved
onClick={() => setOpen(!open)}
size="small"
sx={{ padding: 1 }}
>
{open ? <KeyboardArrowUpIcon /> : <KeyboardArrowDownIcon />}
{open ? <KeyboardArrowDownIcon /> : <KeyboardArrowRightIcon />}
</IconButton>
{label}
</TableCell>
Expand Down
Loading