Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

First button of GridAction is always highlighted #3235

@fengye87

Description

@fengye87

What steps did you take and what happened:

  1. Create a table with at least one row
  2. Create GridAction with two actions for each row
  3. Open any row's GridAction menu
  4. The first button is always highlighted

Screen Shot 2022-04-01 at 3 43 14 PM

podRow := component.TableRow{
	"Name":   component.NewLink(pod.GetName(), pod.GetName(), fmt.Sprintf("/overview/namespace/default/workloads/pods/%s", pod.GetName())),
	"Labels": component.NewLabels(nil),
}

podActions := []component.GridAction{{
	Name:       "Delete",
	ActionPath: "example.org/pods/delete",
}, {
	Name:       "Force Delete",
	ActionPath: "example.org/pods/force-delete",
}}
for _, action := range podActions {
	podRow.AddAction(action)
}

podTable.Add(podRow)

What did you expect to happen:
All action items should look the same unless specified.

Environment:

  • Octant version (use octant version): 0.25.1
  • Kubernetes version (use kubectl version): 1.23.5
  • OS (macOS 10.15, Windows 10, Ubuntu 19.10 etc): Fedora 35

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions