Skip to content

Commit

Permalink
avoid inline styles
Browse files Browse the repository at this point in the history
Signed-off-by: yuye-aws <yuyezhu@amazon.com>
  • Loading branch information
yuye-aws committed Aug 16, 2023
1 parent 75a446a commit ffc7f76
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions src/core/public/chrome/ui/header/collapsible_nav_header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ export function CollapsibleNavHeader({ workspaces, getUrlForApp, basePath }: Pro
<EuiIcon type="logoOpenSearch" size="l" />
</EuiFlexItem>
<EuiFlexItem>
<EuiText style={{ fontWeight: 'bold' }}>{defaultHeaderName}</EuiText>
<EuiText>
<strong> {defaultHeaderName} </strong>
</EuiText>
</EuiFlexItem>
</EuiFlexGroup>
</EuiCollapsibleNavGroup>
Expand All @@ -98,7 +100,9 @@ export function CollapsibleNavHeader({ workspaces, getUrlForApp, basePath }: Pro
);
const name =
currentWorkspace !== null && index === 0 ? (
<EuiText style={{ fontWeight: 'bold' }}>{workspace.name}</EuiText>
<EuiText>
<strong> {workspace.name} </strong>
</EuiText>
) : (
workspace.name
);
Expand Down Expand Up @@ -153,7 +157,9 @@ export function CollapsibleNavHeader({ workspaces, getUrlForApp, basePath }: Pro
<EuiIcon type="logoOpenSearch" size="l" />
</EuiFlexItem>
<EuiFlexItem>
<EuiText style={{ fontWeight: 'bold' }}>{currentWorkspaceName}</EuiText>
<EuiText>
<strong> {currentWorkspaceName} </strong>
</EuiText>
</EuiFlexItem>
<EuiFlexItem>
<EuiIcon type="arrowDown" onClick={onButtonClick} />
Expand All @@ -168,7 +174,9 @@ export function CollapsibleNavHeader({ workspaces, getUrlForApp, basePath }: Pro
<EuiIcon type="logoOpenSearch" size="l" />
</EuiFlexItem>
<EuiFlexItem>
<EuiText style={{ fontWeight: 'bold' }}>{currentWorkspaceName}</EuiText>
<EuiText>
<strong> {currentWorkspaceName} </strong>
</EuiText>
</EuiFlexItem>
<EuiFlexItem>
<EuiIcon type="cross" onClick={closePopover} />
Expand All @@ -183,10 +191,12 @@ export function CollapsibleNavHeader({ workspaces, getUrlForApp, basePath }: Pro
items: [
{
name: (
<EuiText style={{ fontWeight: 'bold' }}>
{i18n.translate('core.ui.primaryNav.workspacePickerMenu.workspaceList', {
defaultMessage: 'Workspaces',
})}
<EuiText>
<strong>
{i18n.translate('core.ui.primaryNav.workspacePickerMenu.workspaceList', {
defaultMessage: 'Workspaces',
})}
</strong>
</EuiText>
),
icon: 'folderClosed',
Expand Down

0 comments on commit ffc7f76

Please sign in to comment.