8000 Add position customization ability for expand button in DataView - odyssey-react-mui by akash-pulikkottiljames-okta · Pull Request #2555 · okta/odyssey · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add position customization ability for expand button in DataView - odyssey-react-mui #2555

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

akash-pulikkottiljames-okta
Copy link
@akash-pulikkottiljames-okta akash-pulikkottiljames-okta commented May 26, 2025

OKTA-939446

Summary

What we did?
We've added a new customization option for the expand column button within the DataView component. Previously, the expand button's position was fixed at the beginning, limiting user control. This update introduces a new prop that allows developers to specify the desired column index for the expand button. By passing a number to this prop, the expand button will be placed among the regular data columns at the indicated position.

If no value is provided for this new prop, the component will default to its current behavior, ensuring no breaking changes.

Why we did this?
This modification was necessary to align with the specifications provided by our design team. This Figma design illustrates the expand button positioned as the second column.

Relevant slack thread discussing this problem.

Testing & Screenshots

  • I have confirmed this change with my designer and the Odyssey Design Team.
    (Our designer agrees to this change and the discussion with Odyssey team can be seen in the slack thread linked above.)
Screenshot 2025-05-26 at 12 22 36 PM Screenshot 2025-05-26 at 12 21 18 PM

@akash-pulikkottiljames-okta akash-pulikkottiljames-okta marked this pull request as ready for review May 26, 2025 16:52
@akash-pulikkottiljames-okta akash-pulikkottiljames-okta requested a review from a team as a code owner May 26, 2025 16:52
@@ -526,6 +531,7 @@ export const ExpandableRowsAndCards: Story = {
tableLayoutOptions={{
columns: personColumns,
renderDetailPanel: renderAdditionalContent,
expandColumnPosition: 0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of modifying the existing story, do we have a separate test available for moving this expand column?

Also, wouldn't we only want it at left or right and not in the middle of the row?

Instead of an index, I'm thinking this would be better suited to a string identifier union "left" | "right" or "start" | "end" because we need it to work with right-to-left modes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0