This repository has been archived by the owner on Mar 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(DropdownItem): refactor to functional component with hooks (#2382)
* start component refactor * add a11y props * update styles * add isConformant test * add variables to dropdownVariables * changelog
- Loading branch information
1 parent
22af6f9
commit 9d4d87b
Showing
5 changed files
with
187 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
packages/react/test/specs/components/Dropdown/DropdownItem-test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import DropdownItem from 'src/components/Dropdown/DropdownItem' | ||
import { isConformant } from 'test/specs/commonTests' | ||
|
||
describe('DropdownItem', () => { | ||
isConformant(DropdownItem, { | ||
constructorName: 'DropdownItem', | ||
hasAccessibilityProp: false, | ||
}) | ||
}) |