-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: responsive control bar and title bar [DHIS2-10138] (#1400)
Partially implements DHIS2-10138 This PR addresses responsive changes in the view control bar and view title bar. Includes * spacing around chips, dashboard search field, against edge, chip scroll bars * remove action buttons (Edit, Share, Add filter) * remove "+" button (new button) * Width <=480 and collapsed control bar Implementation notes: * decoupled the View control bar from Edit control bar, since Edit mode doesn't need all the dnd functionality * For js part of the implementation, a new react hook was added that listens to window resizes. The components that need to make responsive changes can then use that hook. * The ChevronUp and ChevronDown icons are currently copied into this repo, but when we upgrade to ui6, then we'll switch to using the icons from there. * ControlBar was simplified since it is no longer used for the Edit bar (no editMode needed) * Where it made sense, I switched from inline css to css classes * The "Show more/less" button on the control bar is now an icon instead of text. Accessibility changes were made to adapt to this, like using a element and adding aria-label. Also added a tooltip, suggested by Joe.
- Loading branch information
1 parent
ea0a896
commit 7b6af12
Showing
36 changed files
with
966 additions
and
747 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
Oops, something went wrong.