Skip to content

Commit

Permalink
change: [M3-7710] - Table Collapsible row icon orientation (#10119)
Browse files Browse the repository at this point in the history
* Change collapsible row icon orientation

* Added changeset: Table Collapsible row icon orientation

* Fix e2e suite
  • Loading branch information
abailly-akamai authored Jan 30, 2024
1 parent 9a50d8f commit 9781197
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-10119-changed-1706549896002.md
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 Cloud 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 Cloud 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`}
onClick={() => setOpen(!open)}
size="small"
sx={{ padding: 1 }}
>
{open ? <KeyboardArrowUpIcon /> : <KeyboardArrowDownIcon />}
{open ? <KeyboardArrowDownIcon /> : <KeyboardArrowRightIcon />}
</IconButton>
{label}
</TableCell>
Expand Down

0 comments on commit 9781197

Please sign in to comment.