diff --git a/src/app/layout/Layout.module.css b/src/app/layout/Layout.module.css index 06692d4f..98975149 100644 --- a/src/app/layout/Layout.module.css +++ b/src/app/layout/Layout.module.css @@ -8,7 +8,6 @@ .wrapper { display: grid; grid-template-areas: 'sidebar' 'main'; - line-height: 20px; font-size: 14px; height: 100%; background: var(--colors-grey900); @@ -18,7 +17,7 @@ .wrapperWithFooter { composes: wrapper; grid-template-areas: 'sidebar' 'main' 'footer'; - grid-template-rows: auto 1fr 68px; + grid-template-rows: auto 1fr 44px; overflow-y: auto; } @@ -26,7 +25,7 @@ padding: var(--spacers-dp16); padding-bottom: 0px; grid-area: main; - background-color: var(--colors-grey100); + background-color: var(--colors-grey200); width: 100%; display: flex; flex-direction: column; @@ -45,13 +44,13 @@ font-size: 28px; color: var(--colors-grey900); line-height: 40px; - padding-bottom: 16px; + padding-bottom: 8px; } .footerPlaceholder { grid-area: footer; width: 100vw; - padding: var(--spacers-dp16) 0; + padding: 0; background: var(--colors-white); } @@ -65,7 +64,7 @@ } .wrapperWithFooter { grid-template-areas: 'sidebar main' 'footer footer'; - grid-template-rows: 1fr 68px; + grid-template-rows: 1fr 44px; } .sidebar { width: 240px; diff --git a/src/app/sidebar/Sidebar.module.css b/src/app/sidebar/Sidebar.module.css index 44a7bc8c..a54fa674 100644 --- a/src/app/sidebar/Sidebar.module.css +++ b/src/app/sidebar/Sidebar.module.css @@ -1,9 +1,9 @@ .noMatchMessage { - font-size: 14px; - line-height: 19px; - color: var(--colors-grey200); + font-size: 13px; + line-height: 17px; + color: var(--colors-grey500); text-align: center; - padding: var(--spacers-dp24) var(--spacers-dp12); + padding: var(--spacers-dp16) var(--spacers-dp8); max-width: 100%; word-break: break-word; } diff --git a/src/app/sidebar/Sidebar.tsx b/src/app/sidebar/Sidebar.tsx index 9f14270d..3231d2de 100644 --- a/src/app/sidebar/Sidebar.tsx +++ b/src/app/sidebar/Sidebar.tsx @@ -139,8 +139,7 @@ type NoMatchMessageProps = { const NoMatchMessage = ({ filter }: PropsWithChildren) => (
- {i18n.t('No menu items found for')}
- {filter} + {i18n.t('No menu items found for')}
‘{filter}’
) diff --git a/src/app/sidebar/sidenav/Sidenav.module.css b/src/app/sidebar/sidenav/Sidenav.module.css index 42ef07cc..bd68e993 100644 --- a/src/app/sidebar/sidenav/Sidenav.module.css +++ b/src/app/sidebar/sidenav/Sidenav.module.css @@ -2,8 +2,9 @@ /* component-specific variables not defined in ui */ html { - --sidenav-dark-bg-hover: #2c3644; - --sidenav-dark-bg-selected: #040506; + --sidenav-dark-bg: #040506; + --sidenav-dark-bg-hover: #0b0d10; + --sidenav-dark-bg-selected: #010101; } /* nuke list styles */ @@ -17,44 +18,52 @@ html { .sidenav-wrap { width: 100%; height: 100%; - background: var(--colors-grey900); + background: var(--sidenav-dark-bg); overflow-y: auto; - color: white; + color: var(--colors-grey300); display: flex; flex-direction: column; } .sidenav-items { overflow-y: auto; + scrollbar-color: var(--colors-grey700) var(--sidenav-dark-bg); + scrollbar-width: thin; } /* parent */ .sidenav-parent button { border: none; - background: var(--colors-grey900); - color: white; - font-size: 15px; + background: var(--sidenav-dark-bg); + color: var(--colors-grey300); + font-size: 14px; text-align: left; display: flex; align-items: center; width: 100%; - min-height: 36px; + min-height: 32px; padding: 8px 8px 8px 12px; } .sidenav-parent button:hover { background: var(--sidenav-dark-bg-hover); + text-decoration: underline; } .sidenav-parent button:focus { outline: 2px solid white; background: var(--sidenav-dark-bg-hover); outline-offset: -2px; } +/* Prevent focus styles when mouse clicking */ +.sidenav-parent button:focus:not(:focus-visible) { + outline: none; + background: var(--sidenav-dark-bg); +} .sidenav-parent button:disabled { color: var(--colors-grey500); cursor: not-allowed; } .sidenav-parent button:disabled:hover { - background: var(--colors-grey900); + background: var(--sidenav-dark-bg); } .sidenav-parent-chevron { margin-left: auto; @@ -72,18 +81,19 @@ html { } .sidenav-link a { display: block; - min-height: 36px; + min-height: 32px; padding: 8px 8px 8px 12px; - background: var(--colors-grey900); + background: var(--sidenav-dark-bg); text-decoration: none; - color: white; - font-size: 15px; + color: var(--colors-grey300); + font-size: 14px; display: flex; align-items: center; } .sidenav-link:hover, .sidenav-link a:hover { background: var(--sidenav-dark-bg-hover); + text-decoration: underline; } .sidenav-link:focus, .sidenav-link a:focus { @@ -98,17 +108,25 @@ html { } .sidenav-link-disabled:hover, .sidenav-link-disabled:hover > a { - background: var(--colors-grey900); + background: var(--sidenav-dark-bg); } .sidenav-link a.active, .sidenav-link :global(.active) { - font-weight: 600; + font-weight: 700; + text-decoration: underline; + color: var(--colors-grey300); background: var(--sidenav-dark-bg-selected); - box-shadow: inset 6px 0px 0px 0px var(--colors-teal500); + box-shadow: inset 6px 0px 0px 0px var(--colors-teal400); } .sidenav-link.active:hover { background: var(--sidenav-dark-bg-selected); } +/* Prevent focus styles when mouse clicking */ +.sidenav-link:focus:not(:focus-visible), +.sidenav-link a:focus:not(:focus-visible) { + outline: none; + background: var(--sidenav-dark-bg-selected); +} .sidenav-item-icon { margin-right: 8px; width: 16px; @@ -143,20 +161,20 @@ html { } .sidenav-filter { - padding: var(--spacers-dp12) var(--spacers-dp8) var(--spacers-dp16); + padding: var(--spacers-dp8); } .sidenav-filter input { - background: #131a22; - border: 1px solid #111111; + background: var(--sidenav-dark-bg); + border: 1px solid var(--colors-grey900); color: var(--colors-grey050); } .sidenav-filter input::placeholder { - color: var(--colors-grey400); + color: var(--colors-grey500); } .sidenav-filter input:focus { - background: #131a22; + background: var(--sidenav-dark-bg); border-color: var(--colors-grey700); - box-shadow: var(--colors-grey400) 0px 0px 0px 2px inset; + box-shadow: var(--colors-grey500) 0px 0px 0px 2px inset; } diff --git a/src/app/sidebar/sidenav/SidenavFilter.tsx b/src/app/sidebar/sidenav/SidenavFilter.tsx index 87db8975..12d238c0 100644 --- a/src/app/sidebar/sidenav/SidenavFilter.tsx +++ b/src/app/sidebar/sidenav/SidenavFilter.tsx @@ -24,9 +24,9 @@ export const SidenavFilter = ({ onChange }: SidenavParentProps) => { ) diff --git a/src/components/form/DefaultFormContents.module.css b/src/components/form/DefaultFormContents.module.css index de17044a..bf5221e7 100644 --- a/src/components/form/DefaultFormContents.module.css +++ b/src/components/form/DefaultFormContents.module.css @@ -1,5 +1,6 @@ .form { background: var(--colors-white); + border: 1px solid var(--colors-grey300); padding: var(--spacers-dp16); padding-bottom: var(--spacers-dp32); } @@ -9,7 +10,9 @@ left: 0; bottom: 0; width: 100vw; - padding: var(--spacers-dp16); - box-shadow: 0 0 3px rgba(0, 0, 0, 0.8); + padding: var(--spacers-dp8) var(--spacers-dp16); + box-shadow: 0px 0px 1px 0px rgba(33, 41, 52, 0.1), + 0px -4px 6px -1px rgba(33, 41, 52, 0.1), + 0px -2px 4px -1px rgba(33, 41, 52, 0.06); background: var(--colors-white); } diff --git a/src/components/form/DefaultFormContents.tsx b/src/components/form/DefaultFormContents.tsx index 789679be..855ac2e7 100644 --- a/src/components/form/DefaultFormContents.tsx +++ b/src/components/form/DefaultFormContents.tsx @@ -1,5 +1,4 @@ import i18n from '@dhis2/d2-i18n' -import { Card } from '@dhis2/ui' import React from 'react' import { useFormState } from 'react-final-form' import { getSectionPath, useNavigateWithSearchState } from '../../lib' @@ -24,13 +23,13 @@ export function DefaultEditFormContents({ return ( <> - +
{children} - +
+
{children} @@ -72,6 +71,6 @@ export function DefaultNewFormContents({ submitting={submitting} onCancelClick={() => navigate(listPath)} /> - +
) } diff --git a/src/components/form/attributes/CustomAttributes.tsx b/src/components/form/attributes/CustomAttributes.tsx index 08d2e2b4..b40a247d 100644 --- a/src/components/form/attributes/CustomAttributes.tsx +++ b/src/components/form/attributes/CustomAttributes.tsx @@ -121,7 +121,7 @@ export function CustomAttributesSection({ {i18n.t( - 'Set up information for the attributes assigned to {{modelName}}', + 'Set up information for the attributes assigned to {{modelName}}.', { modelName: schemaSection.titlePlural.toLowerCase() } )} diff --git a/src/components/form/fields/OrganisationUnitField.module.css b/src/components/form/fields/OrganisationUnitField.module.css new file mode 100644 index 00000000..2b25b25b --- /dev/null +++ b/src/components/form/fields/OrganisationUnitField.module.css @@ -0,0 +1,8 @@ +.OrganisationUnitTreeWrapper { + padding: var(--spacers-dp4); + border: 1px solid var(--colors-grey300); + border-radius: 3px; + width: 640px; + max-height: 800px; + overflow: auto; +} diff --git a/src/components/form/fields/OrganisationUnitField.tsx b/src/components/form/fields/OrganisationUnitField.tsx index c65bff26..46bf1c6b 100644 --- a/src/components/form/fields/OrganisationUnitField.tsx +++ b/src/components/form/fields/OrganisationUnitField.tsx @@ -7,6 +7,7 @@ import { import React from 'react' import { useField } from 'react-final-form' import { useCurrentUserRootOrgUnits } from '../../../lib/user/currentUserStore' +import classes from './OrganisationUnitField.module.css' type OrganisationUnitFieldProps = { name?: string @@ -66,13 +67,15 @@ export const OrganisationUnitField = ({ error={meta.touched && meta.error} validationText={meta.touched && meta.error} > - +
+ +
) } diff --git a/src/components/form/fields/ShortNameField.tsx b/src/components/form/fields/ShortNameField.tsx index fa257132..e3f22730 100644 --- a/src/components/form/fields/ShortNameField.tsx +++ b/src/components/form/fields/ShortNameField.tsx @@ -49,7 +49,7 @@ export function ShortNameField({ }) const helpString = - helpText || i18n.t('Often used in reports where space is limited') + helpText || i18n.t('Often used in reports where space is limited.') return ( diff --git a/src/components/metadataFormControls/DataElementGroupsTransfer/DataElementGroupsTransfer.tsx b/src/components/metadataFormControls/DataElementGroupsTransfer/DataElementGroupsTransfer.tsx index 7ac44e19..417010cf 100644 --- a/src/components/metadataFormControls/DataElementGroupsTransfer/DataElementGroupsTransfer.tsx +++ b/src/components/metadataFormControls/DataElementGroupsTransfer/DataElementGroupsTransfer.tsx @@ -148,6 +148,9 @@ export const DataElementGroupsTransfer = forwardRef( rightFooter={rightFooter} leftHeader={leftHeader} leftFooter={leftFooter} + height="320px" + optionsWidth="480px" + selectedWidth="480px" /> ) } diff --git a/src/components/metadataFormControls/DataElementsTransfer/DataElementsTransfer.tsx b/src/components/metadataFormControls/DataElementsTransfer/DataElementsTransfer.tsx index b5e3481e..f1afb148 100644 --- a/src/components/metadataFormControls/DataElementsTransfer/DataElementsTransfer.tsx +++ b/src/components/metadataFormControls/DataElementsTransfer/DataElementsTransfer.tsx @@ -145,6 +145,9 @@ export const DataElementsTransfer = forwardRef(function DataElementsSelect( rightFooter={rightFooter} leftHeader={leftHeader} leftFooter={leftFooter} + height="320px" + optionsWidth="480px" + selectedWidth="480px" /> ) }) diff --git a/src/components/sectionList/listActions/DeleteAction.tsx b/src/components/sectionList/listActions/DeleteAction.tsx index 04975263..017c3a59 100644 --- a/src/components/sectionList/listActions/DeleteAction.tsx +++ b/src/components/sectionList/listActions/DeleteAction.tsx @@ -45,6 +45,7 @@ export function DeleteAction({ <> } diff --git a/src/components/sectionList/listActions/SectionListActions.tsx b/src/components/sectionList/listActions/SectionListActions.tsx index 0a2a112f..d38af604 100644 --- a/src/components/sectionList/listActions/SectionListActions.tsx +++ b/src/components/sectionList/listActions/SectionListActions.tsx @@ -10,6 +10,7 @@ import { IconTranslate16, MenuItem, Popover, + colors, } from '@dhis2/ui' import React, { useRef, useState } from 'react' import { useHref, useLinkClickHandler } from 'react-router-dom' @@ -43,7 +44,7 @@ export const ActionEdit = ({ to={{ pathname: modelId }} state={preservedSearchState} > - + ) } @@ -90,7 +91,7 @@ export const ActionMore = ({ small secondary onClick={() => setOpen(!open)} - icon={} + icon={} /> {open && ( - - diff --git a/src/pages/categories/form/CategoryFormFields.tsx b/src/pages/categories/form/CategoryFormFields.tsx index 1e261bae..d6730ca5 100644 --- a/src/pages/categories/form/CategoryFormFields.tsx +++ b/src/pages/categories/form/CategoryFormFields.tsx @@ -42,7 +42,7 @@ export const CategoryFormFields = () => { {i18n.t( - 'Choose how this category option group will be used to capture and analyze' + 'Choose how this category option group will be used to capture and analyze data.' )} @@ -72,7 +72,7 @@ export const CategoryFormFields = () => { component={CheckboxFieldFF} label={i18n.t('Use as data dimension')} helpText={i18n.t( - 'Category option group will be available to the analytics as another dimension' + 'Make available to analytics apps as a selectable dimension.' )} /> @@ -85,9 +85,7 @@ export const CategoryFormFields = () => { - {i18n.t( - 'Choose the category options to include in this category option group.' - )} + {i18n.t('Choose the options to include in this category.')} diff --git a/src/pages/categoryCombos/form/CategoryComboFormFields.tsx b/src/pages/categoryCombos/form/CategoryComboFormFields.tsx index 298f3f7a..114df371 100644 --- a/src/pages/categoryCombos/form/CategoryComboFormFields.tsx +++ b/src/pages/categoryCombos/form/CategoryComboFormFields.tsx @@ -26,7 +26,9 @@ export const CategoryComboFormFields = () => { {i18n.t('Basic information')} - {i18n.t('Set up the basic information for this category.')} + {i18n.t( + 'Set up the basic information for this category combination.' + )} @@ -43,7 +45,7 @@ export const CategoryComboFormFields = () => { {i18n.t( - 'Choose how this category combo will be used to capture and analyze data.' + 'Choose how this category combination will be used to capture and analyze data.' )} @@ -84,7 +86,7 @@ export const CategoryComboFormFields = () => { {i18n.t( - 'Choose the categories to include in this category combo.' + 'Choose the categories to include in this category combination.' )} diff --git a/src/pages/categoryOptionCombos/form/CategoryOptionComboFormFields.tsx b/src/pages/categoryOptionCombos/form/CategoryOptionComboFormFields.tsx index 68fbfad3..d11af6f0 100644 --- a/src/pages/categoryOptionCombos/form/CategoryOptionComboFormFields.tsx +++ b/src/pages/categoryOptionCombos/form/CategoryOptionComboFormFields.tsx @@ -22,7 +22,9 @@ export const CategoryOptionComboFormFields = () => { {i18n.t('Basic information')} - {i18n.t('Set up the basic information for this category.')} + {i18n.t( + 'Set up the basic information for this category option combination.' + )} diff --git a/src/pages/categoryOptionGroupSets/form/CategoryOptionGroupSetFormFields.tsx b/src/pages/categoryOptionGroupSets/form/CategoryOptionGroupSetFormFields.tsx index a1b6b704..6a9f1e65 100644 --- a/src/pages/categoryOptionGroupSets/form/CategoryOptionGroupSetFormFields.tsx +++ b/src/pages/categoryOptionGroupSets/form/CategoryOptionGroupSetFormFields.tsx @@ -43,7 +43,7 @@ function CategoryOptionGroupSetFormFields() { {i18n.t( - 'Choose how this category option group set will be used to capture and analyze' + 'Choose how this category option group set will be used to capture and analyze data.' )} @@ -73,7 +73,7 @@ function CategoryOptionGroupSetFormFields() { component={CheckboxFieldFF} label={i18n.t('Use as data dimension')} helpText={i18n.t( - 'Category option group set will be available to the analytics as another dimension' + 'Make available to analytics apps as a selectable dimension.' )} /> @@ -82,7 +82,7 @@ function CategoryOptionGroupSetFormFields() { diff --git a/src/pages/categoryOptionGroups/form/CategoryOptionGroupFormFields.tsx b/src/pages/categoryOptionGroups/form/CategoryOptionGroupFormFields.tsx index 2c5ca915..8f4ad85e 100644 --- a/src/pages/categoryOptionGroups/form/CategoryOptionGroupFormFields.tsx +++ b/src/pages/categoryOptionGroups/form/CategoryOptionGroupFormFields.tsx @@ -43,7 +43,7 @@ function CategoryOptionGroupFormFields() { {i18n.t( - 'Choose how this category option will be used to capture and analyze' + 'Choose how this category option will be used to capture and analyze data.' )} @@ -76,7 +76,7 @@ function CategoryOptionGroupFormFields() { {i18n.t( - 'Choose the category options to include in this category.' + 'Choose the options to include in this category option group.' )} diff --git a/src/pages/categoryOptions/form/CategoryOptionFormFields.tsx b/src/pages/categoryOptions/form/CategoryOptionFormFields.tsx index 2d015116..6af8e337 100644 --- a/src/pages/categoryOptions/form/CategoryOptionFormFields.tsx +++ b/src/pages/categoryOptions/form/CategoryOptionFormFields.tsx @@ -55,7 +55,7 @@ export const CategoryOptionFormFields = () => { {i18n.t( - 'Choose when, and for which organisation units this category option will be available.' + 'Choose when, and for which organisation units, this category option will be available.' )} diff --git a/src/pages/dataElementGroupSets/Edit.module.css b/src/pages/dataElementGroupSets/Edit.module.css index de17044a..bf5221e7 100644 --- a/src/pages/dataElementGroupSets/Edit.module.css +++ b/src/pages/dataElementGroupSets/Edit.module.css @@ -1,5 +1,6 @@ .form { background: var(--colors-white); + border: 1px solid var(--colors-grey300); padding: var(--spacers-dp16); padding-bottom: var(--spacers-dp32); } @@ -9,7 +10,9 @@ left: 0; bottom: 0; width: 100vw; - padding: var(--spacers-dp16); - box-shadow: 0 0 3px rgba(0, 0, 0, 0.8); + padding: var(--spacers-dp8) var(--spacers-dp16); + box-shadow: 0px 0px 1px 0px rgba(33, 41, 52, 0.1), + 0px -4px 6px -1px rgba(33, 41, 52, 0.1), + 0px -2px 4px -1px rgba(33, 41, 52, 0.06); background: var(--colors-white); } diff --git a/src/pages/dataElementGroupSets/New.module.css b/src/pages/dataElementGroupSets/New.module.css index 331dde3d..0c810796 100644 --- a/src/pages/dataElementGroupSets/New.module.css +++ b/src/pages/dataElementGroupSets/New.module.css @@ -1,5 +1,6 @@ .form { background: var(--colors-white); + border: 1px solid var(--colors-grey300); padding: var(--spacers-dp16); padding-bottom: var(--spacers-dp32); } diff --git a/src/pages/dataElementGroupSets/fields/DataElementGroupsField.module.css b/src/pages/dataElementGroupSets/fields/DataElementGroupsField.module.css index f40ea288..cb604490 100644 --- a/src/pages/dataElementGroupSets/fields/DataElementGroupsField.module.css +++ b/src/pages/dataElementGroupSets/fields/DataElementGroupsField.module.css @@ -1,4 +1,4 @@ -.dataElementsOptionsFooter { +.dataElementGroupsOptionsFooter { padding: var(--spacers-dp8) 0; } diff --git a/src/pages/dataElementGroupSets/form/DataElementGroupSetFormFields.tsx b/src/pages/dataElementGroupSets/form/DataElementGroupSetFormFields.tsx index da4d5502..d68be089 100644 --- a/src/pages/dataElementGroupSets/form/DataElementGroupSetFormFields.tsx +++ b/src/pages/dataElementGroupSets/form/DataElementGroupSetFormFields.tsx @@ -30,7 +30,7 @@ export function DataElementGroupSetFormFields() { {i18n.t( - 'Set up the information for this data element group' + 'Set up the information for this data element group set.' )} @@ -40,7 +40,7 @@ export function DataElementGroupSetFormFields() { diff --git a/src/pages/dataElementGroups/Edit.module.css b/src/pages/dataElementGroups/Edit.module.css index de17044a..bf5221e7 100644 --- a/src/pages/dataElementGroups/Edit.module.css +++ b/src/pages/dataElementGroups/Edit.module.css @@ -1,5 +1,6 @@ .form { background: var(--colors-white); + border: 1px solid var(--colors-grey300); padding: var(--spacers-dp16); padding-bottom: var(--spacers-dp32); } @@ -9,7 +10,9 @@ left: 0; bottom: 0; width: 100vw; - padding: var(--spacers-dp16); - box-shadow: 0 0 3px rgba(0, 0, 0, 0.8); + padding: var(--spacers-dp8) var(--spacers-dp16); + box-shadow: 0px 0px 1px 0px rgba(33, 41, 52, 0.1), + 0px -4px 6px -1px rgba(33, 41, 52, 0.1), + 0px -2px 4px -1px rgba(33, 41, 52, 0.06); background: var(--colors-white); } diff --git a/src/pages/dataElementGroups/New.module.css b/src/pages/dataElementGroups/New.module.css index 331dde3d..0c810796 100644 --- a/src/pages/dataElementGroups/New.module.css +++ b/src/pages/dataElementGroups/New.module.css @@ -1,5 +1,6 @@ .form { background: var(--colors-white); + border: 1px solid var(--colors-grey300); padding: var(--spacers-dp16); padding-bottom: var(--spacers-dp32); } diff --git a/src/pages/dataElementGroups/form/DataElementGroupFormFields.tsx b/src/pages/dataElementGroups/form/DataElementGroupFormFields.tsx index b52cace5..0c61cbca 100644 --- a/src/pages/dataElementGroups/form/DataElementGroupFormFields.tsx +++ b/src/pages/dataElementGroups/form/DataElementGroupFormFields.tsx @@ -26,7 +26,7 @@ export function DataElementGroupFormFields() { {i18n.t( - 'Set up the information for this data element group' + 'Set up the information for this data element group.' )} diff --git a/src/pages/dataElements/Edit.module.css b/src/pages/dataElements/Edit.module.css index de17044a..bf5221e7 100644 --- a/src/pages/dataElements/Edit.module.css +++ b/src/pages/dataElements/Edit.module.css @@ -1,5 +1,6 @@ .form { background: var(--colors-white); + border: 1px solid var(--colors-grey300); padding: var(--spacers-dp16); padding-bottom: var(--spacers-dp32); } @@ -9,7 +10,9 @@ left: 0; bottom: 0; width: 100vw; - padding: var(--spacers-dp16); - box-shadow: 0 0 3px rgba(0, 0, 0, 0.8); + padding: var(--spacers-dp8) var(--spacers-dp16); + box-shadow: 0px 0px 1px 0px rgba(33, 41, 52, 0.1), + 0px -4px 6px -1px rgba(33, 41, 52, 0.1), + 0px -2px 4px -1px rgba(33, 41, 52, 0.06); background: var(--colors-white); } diff --git a/src/pages/dataElements/New.module.css b/src/pages/dataElements/New.module.css index 331dde3d..0c810796 100644 --- a/src/pages/dataElements/New.module.css +++ b/src/pages/dataElements/New.module.css @@ -1,5 +1,6 @@ .form { background: var(--colors-white); + border: 1px solid var(--colors-grey300); padding: var(--spacers-dp16); padding-bottom: var(--spacers-dp32); } diff --git a/src/pages/dataElements/fields/AggregationLevelsField.tsx b/src/pages/dataElements/fields/AggregationLevelsField.tsx index 4f372083..bab3173d 100644 --- a/src/pages/dataElements/fields/AggregationLevelsField.tsx +++ b/src/pages/dataElements/fields/AggregationLevelsField.tsx @@ -38,9 +38,6 @@ export function AggregationLevelsField() { diff --git a/src/pages/dataElements/form/DataElementFormFields.tsx b/src/pages/dataElements/form/DataElementFormFields.tsx index 4826c55f..ec7da6b0 100644 --- a/src/pages/dataElements/form/DataElementFormFields.tsx +++ b/src/pages/dataElements/form/DataElementFormFields.tsx @@ -40,7 +40,7 @@ export function DataElementFormFields() { - {i18n.t('Set up the information for this data element')} + {i18n.t('Set up the information for this data element.')} @@ -126,7 +126,7 @@ export function DataElementFormFields() { {i18n.t( - 'Visualize values for this data element in Analytics app. Multiple legendSet can be applied.' + 'Visualize values for this data element in Analytics app. Multiple legends can be applied.' )} @@ -142,7 +142,7 @@ export function DataElementFormFields() { {i18n.t( - 'By default, the aggregation will start at the lowest assigned organisation unit. If you for example select "Chiefdom", it means that "Chiefdom", "District" and "National" aggregates use "Chiefdom" (the highest aggregation level available) as the data source, and PHU data will not be included. PHU will still be available for the PHU level, but not included in the aggregations to the levels above.' + 'By default, aggregation starts at the lowest assigned organisation unit. You can override this by choosing a different level. Choosing a higher level means that data from lower levels will not be included in the aggregation.' )} diff --git a/src/pages/organisationUnits/list/OrganisationUnitList.module.css b/src/pages/organisationUnits/list/OrganisationUnitList.module.css index b841b32f..662a77cd 100644 --- a/src/pages/organisationUnits/list/OrganisationUnitList.module.css +++ b/src/pages/organisationUnits/list/OrganisationUnitList.module.css @@ -1,6 +1,10 @@ .expandButton { border: 0 !important; } +.expandButton:hover { + background-color: var(--colors-grey300) !important; + color: var(--colors-grey900) !important; +} .listDetailsWrapper { display: grid; @@ -12,6 +16,11 @@ margin-top: var(--spacers-dp8); } +.orgUnitRow td { + padding-block-start: var(--spacers-dp8); + padding-block-end: var(--spacers-dp8); +} + @media (max-width: 1200px) { .listDetailsWrapper { display: grid; diff --git a/src/pages/organisationUnits/list/OrganisationUnitRow.tsx b/src/pages/organisationUnits/list/OrganisationUnitRow.tsx index 49b740bc..ddcaccc4 100644 --- a/src/pages/organisationUnits/list/OrganisationUnitRow.tsx +++ b/src/pages/organisationUnits/list/OrganisationUnitRow.tsx @@ -37,7 +37,7 @@ export const OrganisationUnitRow = ({ return ( <> - +