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

First button of GridAction is always highlighted #3235

Open
fengye87 opened this issue Apr 1, 2022 · 0 comments
Open

First button of GridAction is always highlighted #3235

fengye87 opened this issue Apr 1, 2022 · 0 comments

Comments

@fengye87
Copy link

fengye87 commented Apr 1, 2022

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant