-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: view mode dashboards-bar design changes [DHIS2-18441] #3155
base: master
Are you sure you want to change the base?
Conversation
🚀 Deployed on https://pr-3155.dashboard.netlify.dhis2.org |
…t re-mounts due to react-router
…ashboard-app into feat/header-bar-design-ui-update
Quality Gate failedFailed conditions See analysis details on SonarQube Cloud Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE |
@@ -47,6 +47,10 @@ const CategorizedMenuGroup = ({ | |||
onChangeItemsLimit(type) | |||
} | |||
|
|||
const showHideMoreLabel = seeMore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
showFewerMoreLabel
is a more accurate name
}, [url]) | ||
|
||
return ( | ||
<span |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this change to get rid of the invalid html warning?
const getFilterValuesText = (values) => | ||
values.length === 1 | ||
? values[0].name | ||
: i18n.t('{{count}} selected', { count: values.length }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should handle plurals here, even though singular and plural are the same in this case in English. Might it be different in other languages?
@@ -10,6 +10,10 @@ export const acSetDashboardsFilter = (value) => ({ | |||
value, | |||
}) | |||
|
|||
/* TODO: Possibly this action can be removed if we keep a an input |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we go ahead with this?
Implements DHIS2-18441 according to design doc
Key features
Description
Implements the new design according to the design doc
TODO
Known issues
@dhis2/ui
which comes with some accessibility improvements including arrow-key keyboard navigation for menus. The navigation- and more-actions-menu in the new dashboards-bar are using these. But the filter-menu is using a custom menu-list and this can be used by keyboard by using the tab-key. This inconsistency will be tackled in a separate PR, see DHIS2-18537.Screenshots