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

Table - Add guidance around clickable rows, links, drill downs in tables #3793

Open
mmenestr opened this issue Oct 27, 2023 · 1 comment
Open
Assignees
Labels

Comments

@mmenestr
Copy link
Collaborator

Someone in the PF slack asked whether he could use a clickable row for tables that only have one action in each row - which is to drill down for more information. I said that he shouldn't because they should be reserved for primary details, and drawer opening interactions, while drill downs should be done via linking the name in the row.

This discussion made us realize there is no mention of clickable rows in table design guidelines.

Task: Add guidelines around actions in rows via clickable rows, and links inside the row

  • What should each of them be used for?
  • When should one be used over the other?

This would be relatively straightforward, maybe have one picture for each scenario and a little description.

@github-project-automation github-project-automation bot moved this to Needs triage in PatternFly Issues Oct 27, 2023
@mmenestr mmenestr self-assigned this Oct 27, 2023
@mmenestr mmenestr moved this from Needs triage to Not started in PatternFly Issues Oct 27, 2023
@mmenestr
Copy link
Collaborator Author

mmenestr commented Jan 10, 2024

Draft here:

TO ADD UNDER [H2] USAGE

[H3] Links and actions in tables

Linking to a new page, or drilling down into a row item should be done using blue links in your tables. For example, if you would like to introduce a drill-down action that would bring a user to more a new page with more information about that item, you could link the item's name in the table.

If you only have one action in each row, you should still use a blue link pattern, and should NOT make the whole row clickable. Making the whole row clickable is reserved for actions that open up more details in a drawer, rather than in a new page.

If you would like to link to multiple different pages within the same row, you may have multiple blue links within the same row, within different columns.

TO ADD UNDER [H2] VARIATIONS:

[H3]Clickable table

Image

  1. Clickable row: Row is highlighted when clicked
  2. Drawer: Drawer is opened with more information about that table row

[H4]When to use

  • To present a list of objects in a Primary-detail view. Clicking on the row would open up a drawer with more information.

[H4]When not to use

  • To drill down for more information that would bring you to a new page. Instead, make the row item text/icon clickable.

@mmenestr mmenestr moved this from Not started to In Progress in PatternFly Issues May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

No branches or pull requests

2 participants