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

✨ Selectors to uniquely identify dropdowns #1345

Merged
merged 5 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ export const ApplicationsTableAnalyze: React.FC = () => {
</RBAC>
</ToolbarItem>
{dropdownItems.length ? (
<ToolbarItem>
<ToolbarItem id="toolbar-kebab">
<Dropdown
isOpen={isToolbarKebabOpen}
onSelect={() => setIsToolbarKebabOpen(false)}
Expand Down Expand Up @@ -631,7 +631,7 @@ export const ApplicationsTableAnalyze: React.FC = () => {
<TagIcon />
{application.tags ? application.tags.length : 0}
</Td>
<Td isActionCell>
<Td isActionCell id="pencil-action">
<Button
variant="plain"
icon={<PencilAltIcon />}
Expand All @@ -640,7 +640,7 @@ export const ApplicationsTableAnalyze: React.FC = () => {
}
/>
</Td>
<Td isActionCell>
<Td isActionCell id="row-actions">
<Dropdown
isOpen={isRowDropdownOpen === application.id}
onSelect={() => setIsRowDropdownOpen(null)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ export const ApplicationsTable: React.FC = () => {
</RBAC>
</ToolbarItem>
{dropdownItems.length ? (
<ToolbarItem>
<ToolbarItem id="toolbar-kebab">
<Dropdown
isOpen={isToolbarKebabOpen}
onSelect={() => setIsToolbarKebabOpen(false)}
Expand Down Expand Up @@ -649,7 +649,7 @@ export const ApplicationsTable: React.FC = () => {
<TagIcon />
{application.tags ? application.tags.length : 0}
</Td>
<Td isActionCell>
<Td isActionCell id="pencil-action">
<Button
variant="plain"
icon={<PencilAltIcon />}
Expand All @@ -658,7 +658,7 @@ export const ApplicationsTable: React.FC = () => {
}
/>
</Td>
<Td isActionCell>
<Td isActionCell id="row-actions">
<ActionsColumn
items={[
{
Expand Down
Loading