diff --git a/client/components/breadcrumb/index.tsx b/client/components/breadcrumb/index.tsx index 2f908bfa940d6c..81ed9a6073f957 100644 --- a/client/components/breadcrumb/index.tsx +++ b/client/components/breadcrumb/index.tsx @@ -95,6 +95,7 @@ export type Item = { helpBubble?: React.ReactElement; icon?: React.ReactElement; onClick?: () => void; + className?: string; }; interface Props { items: Item[]; @@ -140,7 +141,7 @@ const Breadcrumb: React.FunctionComponent< Props > = ( props ) => { return ( { items.map( ( item: Item, index: Key ) => ( - + { item.icon && { item.icon } } { index !== 0 && } { item.href && index !== items.length - 1 ? ( diff --git a/client/my-sites/domains/domain-management/subpage-wrapper/headers/add-fowarding-email-header.tsx b/client/my-sites/domains/domain-management/subpage-wrapper/headers/add-fowarding-email-header.tsx index 5608cbc5696a09..4486ed7137be1a 100644 --- a/client/my-sites/domains/domain-management/subpage-wrapper/headers/add-fowarding-email-header.tsx +++ b/client/my-sites/domains/domain-management/subpage-wrapper/headers/add-fowarding-email-header.tsx @@ -29,6 +29,7 @@ const AddForwardingEmailHeader: CustomHeaderComponentType = ( { currentRoute, inSiteContext ), + className: 'navigation-header__domain-name', }, { label: translate( 'Email' ), @@ -57,7 +58,7 @@ const AddForwardingEmailHeader: CustomHeaderComponentType = ( { } return baseNavigationItems; - }, [ inSiteContext, selectedDomainName, selectedSiteSlug, site, translate ] ); + }, [ currentRoute, inSiteContext, selectedDomainName, selectedSiteSlug, site, translate ] ); return ( <> diff --git a/client/my-sites/domains/domain-management/subpage-wrapper/headers/add-mailbox-header.tsx b/client/my-sites/domains/domain-management/subpage-wrapper/headers/add-mailbox-header.tsx index 43ac53bdf1920e..191a70c8bf3722 100644 --- a/client/my-sites/domains/domain-management/subpage-wrapper/headers/add-mailbox-header.tsx +++ b/client/my-sites/domains/domain-management/subpage-wrapper/headers/add-mailbox-header.tsx @@ -24,6 +24,7 @@ const AddMailboxHeader: CustomHeaderComponentType = ( { { label: selectedDomainName, href: `${ domainManagementOverviewRoot() }/${ selectedDomainName }/${ selectedSiteSlug }`, + className: 'navigation-header__domain-name', }, { label: translate( 'Email' ), diff --git a/client/my-sites/domains/domain-management/subpage-wrapper/headers/compare-email-providers.tsx b/client/my-sites/domains/domain-management/subpage-wrapper/headers/compare-email-providers.tsx index 9381d2145f48dd..515c034e994ae4 100644 --- a/client/my-sites/domains/domain-management/subpage-wrapper/headers/compare-email-providers.tsx +++ b/client/my-sites/domains/domain-management/subpage-wrapper/headers/compare-email-providers.tsx @@ -28,6 +28,7 @@ const CompareEmailProvidersHeader: CustomHeaderComponentType = ( { currentRoute, inSiteContext ), + className: 'navigation-header__domain-name', }, { label: translate( 'Email' ), @@ -56,7 +57,7 @@ const CompareEmailProvidersHeader: CustomHeaderComponentType = ( { } return baseNavigationItems; - }, [ inSiteContext, selectedDomainName, selectedSiteSlug, site ] ); + }, [ currentRoute, inSiteContext, selectedDomainName, selectedSiteSlug, site ] ); return ( a, - > span { - word-break: break-word; - overflow-wrap: break-word; - white-space: normal; + &.navigation-header__domain-name { + > a, + > span { + word-break: break-word; + overflow-wrap: break-word; + white-space: normal; + } + } + + > .gridicons-chevron-right { + margin: 0 8px; } } }