diff --git a/ui/src/components/MainHeader/index.scss b/ui/src/components/MainHeader/index.scss index 36ba78e2e..59a70f0f5 100644 --- a/ui/src/components/MainHeader/index.scss +++ b/ui/src/components/MainHeader/index.scss @@ -17,6 +17,42 @@ // height: 2rem; margin-right: 1rem; position: relative; - width: 2rem; + width: 3rem; + a { + align-items: center; + display: flex; + height: 2.5rem; + justify-content: center; + padding: .5rem; + text-decoration: none; + } + a:focus { + border-radius: 5px; + box-shadow: 0 0 1px $color-brand-primary-base, 0 0 0 4px #bbb4f4; + } + } + .organisationWrapper:focus { + box-shadow: 0 0 1px $color-brand-primary-base, 0 0 0 4px #bbb4f4; + } + .Dropdown__header__value { + overflow: visible; + line-height: 1.2; + } + .Dropdown__header__label { + margin-bottom: 0; + } + .Dropdown.Dropdown--hover .Dropdown__menu--primary { + top: 2.5rem; + } + .organisationWrapper { + .Dropdown__header__value { + color: #475161; + max-width: 11.1875rem; + width: auto; + overflow: hidden; + } + .Dropdown__menu--primary .Dropdown__menu__list__item, .Dropdown__menu--secondary .Dropdown__menu__list__item, .Dropdown__menu--tertiary .Dropdown__menu__list__item { + max-width: 14.5rem; + } } } diff --git a/ui/src/components/MainHeader/index.tsx b/ui/src/components/MainHeader/index.tsx index cd3aa7dc0..c3e6077aa 100644 --- a/ui/src/components/MainHeader/index.tsx +++ b/ui/src/components/MainHeader/index.tsx @@ -1,7 +1,7 @@ // Libraries import { useContext, useEffect, useState } from 'react'; -import { useNavigate, useLocation } from 'react-router-dom'; -import { Dropdown } from '@contentstack/venus-components'; +import { useNavigate, useLocation, Link } from 'react-router-dom'; +import { Dropdown, Tooltip } from '@contentstack/venus-components'; // Service import { getCMSDataFromFile } from '../../cmsData/cmsSelector'; @@ -100,21 +100,20 @@ const MainHeader = () => {