-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Moved skip link into it's own component. Updated the style to match the other nav buttons. Updated <NavButton> to accept both href (regular link) and to (react router link). Updated AppList/CurrentApp to use the 'to'-prop instead of the 'href'-prop. * Added localized aria-label for <SkipLink> * Structural updates for <MainNav> to get it ready for further updates. Removed <NavGroup> since it's no longer needed. * Merged <List> and <AppList> into one component. Created <ResizeContainer> which will be used to determine which apps are visible in the nav bar and which apps will be hidden away in the dropdown. Moved sub-components for <AppList> into a components folder for better structure. * Moved some code around and updated all methods to be arrow functions in <AppList> * Updated <ResizeContainer> and <AppList> to hide/show nav items based on the available space in the nav part of the MainNav. (WIP). * Added small transition for appearing/disappearing nav items. Increased the offset a bit. * Updated <ResizeContainer> to work on right-to-left direction * Updated <ResizeContainer> to hide all items from the nav bar on a specific width. * Added a little horizontal padding to prevent interaction styles from being cropped on nav items. * Updated AppListDropdown to show items in alphabetically order * Fixed active app in app list dropdown * Removed the first divider for now. It looked a bit buggy when items fades in/out. * Fixed linting warning * Fixed SkipLink bug * Minor * Updated NavItem IDs to fix integration tests * Added test coverage for <ResizeContainer> * Fixed linting * Removed .only from test. * Fixed <ResizeContainer> test by setting a scope for the interactor. Added 'isRTL'-prop that allows for forcing RTL. * Added test scaffolding for AppList. * Updated test index to look for tests inside the src folder and in all sub-folders. * Added interactors and tests for AppList and AppListDropdown. * Remove .only * Fixed linting * Updated MainNav skeleton colors and fixed linting * Minor update: Now checking for the wrapper el before trying to use the getBoundingClientRect * Added slight delay when determining visible items on mount. This should make the measurement more accurate because fonts etc. hopefully has loaded after the timeout. * Removed delayed visible item determination on mount for now since it caused tests to fail. * update profileDropdown * remove 'data-role' attribute from profile dropdown * Update AppList to use new DropdownAPI * remove focusTrap * update tests for applist * add tests for profileDropdown * use Portal for profile dropdown for now * use relative positioning for ProfileDropdown * remove only from test * lint, move eslint config to top level * set usePortal to false in ProfileDropdown * improve Applist test coverage
- Loading branch information
Showing
10 changed files
with
245 additions
and
187 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
{ | ||
"extends": "@folio/eslint-config-stripes", | ||
"parser": "babel-eslint" | ||
"parser": "babel-eslint", | ||
"overrides": [ | ||
{ | ||
"files": [ "src/**/tests/*", "test/**/*" ], | ||
"rules": { | ||
"func-names": "off", | ||
"no-unused-expressions": "off", | ||
"max-len": "off", | ||
"one-var": "off" | ||
} | ||
} | ||
] | ||
} |
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.