-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create a helper hook for generating ids and start to use it * Updated the AccordionItem tests but found that the SVGs still generate their own ids Which means even if you supply an id to the accordionitem, the ids still won't be deterministic. We actually will have to change the way we render those icons in this component in order to fix this * BREAKING: Change the AccordionItem icon props to be able to pass an id * Update Alert tests * Work on a few more components * Update Autocomplete tests and snapshots * Update choice tests and snapshots The snapshots aren't perfect yet because the inline error renders icons that have their own generated ids. This'll get updated when we get to the error component and the useFormLabel hook * Update Dialog tests and snapshots * Update all other affected snapshots, some of which will change later * Allow `useId` to be used like React's `useId` with no parameters * Make the downshift item ids deterministic as well * [WNMGDS-2369] Id update set 1 (#2639) * Normalize ids for Drawer and DrawerManager * Update filter chip and tests * Update Dropdown and tests * Update HelpDrawer snapshots * Change name of check icon to match other variable name * [WNMGDS-2369] Id update set 2 (#2640) * Update useFormLabel and InlineError Next step is for individual field components to supply a sensible `id` to `useFormLabel` * Updated everything affected by the useFormLabel change * Pass ids down to inputs in the MultiInputDateField * Pass ChoiceList id on to choices * Fix a bunch of text field stuff and fixed an error with the Mask tests Changing the Mask tests to use `TextInput` fixed an error being logged to the console * Fix undefined id in choice list * [WNMGDS-2369] Standardize id prop for components S-V (#2644) * update ids on svgicon and usabanner, update snapshots. * update id for table component. * add custom id hook to tooltip. * add id hook to vertical nav item * update dynamic ids in tests. * add logic to only show id on svg if screen reader compliant. update tests/snaps. * update S-V components, removing icon ids and cleaning up tests/snaps. * update snaps for components using svg icons. * remove unused prop from vert nav item label interface * update svg icon logic to optionally set id if prop is passed. * update snaps where id on icons are defined. * remove iconId from vert nav test. whoopsy * [WNMGDS-2369] Remove icon ids that are now optional (#2648) Remove icon ids that are now optional * [WNMGDS-2369] Fix dynamic icon ids in SingleInputDateField (#2651) Fix dynamic icon ids in SingleInputDateField * [WNMGDS-2369] Standardize generated ids in Tabs (#2650) Standardize the tab ids and add unit tests * [WNMGDS-2369] Standardize id prop in theme components (#2654) * export useId hook for themes to use * update hgov header to use useId hook * update footer ids to match format established by header (hc-c-<COMPONENT>-*). * roll back useId use on header for usabanner to follow established pattern of hardcoding ids. * update mgov svg to use useId. * remove sneaky sneaky import brought in by vs code. i'm on to you robots * remove banner id from header - not used. --------- Co-authored-by: Sarah <zarahzachz@users.noreply.github.com>
- Loading branch information
1 parent
6661712
commit 3f09f12
Showing
90 changed files
with
711 additions
and
509 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
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
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
Oops, something went wrong.