Skip to content

Commit

Permalink
revert redundant aria-controls and clean up linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mcwinter07 committed Nov 20, 2023
1 parent 241f4fb commit 1199280
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { HTMLAttributes, ReactNode } from "react"
import React, { HTMLAttributes } from "react"
import { createPortal } from "react-dom"
import {
autoUpdate,
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/__future__/Select/Select.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ describe("<Select />", () => {
})

await waitFor(() => {
expect(trigger).toHaveAttribute("aria-controls", expectedPopoverId)
expect(trigger).toHaveAttribute("aria-controls")
})
})

Expand Down Expand Up @@ -399,7 +399,7 @@ describe("<Select />", () => {
"#id--select--popover"
)

expect(popoverAsDescendant).toHaveAttribute("role", "dialog")
expect(popoverAsDescendant).toBeInTheDocument()
})
})
})
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/__future__/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ export const Select = <Option extends SelectOption = SelectOption>({
isDisabled: triggerProps.isDisabled,
isReversed,
ref: refs.setReference,
"aria-controls": popoverId,
}

return (
Expand Down

0 comments on commit 1199280

Please sign in to comment.