fix(ui): fix docker images page error on pageheader EE-3668 (#7212)

* fix docker images page error with link on page-header
pull/7361/head
Richard Wei 2022-07-28 09:53:19 +12:00 committed by GitHub
parent 52ac54f15c
commit aa830a0e58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 5 deletions

View File

@ -41,7 +41,11 @@ function renderCrumb(crumb: Crumb | string) {
if (crumb.link) {
return (
<Link to={crumb.link} params={crumb.linkParams}>
<Link
to={crumb.link}
params={crumb.linkParams}
className="text-blue-9 hover:underline"
>
{crumb.label}
</Link>
);

View File

@ -39,13 +39,13 @@ export function PageHeader({
<HeaderTitle title={title}>
{reload && (
<Button
color="link"
size="medium"
color="none"
size="large"
onClick={onClickedRefresh}
className={styles.reloadButton}
disabled={loading}
>
<RefreshCw className="feather icon-sm" />
<RefreshCw className="icon" />
</Button>
)}
</HeaderTitle>

View File

@ -0,0 +1,10 @@
.btn-none {
padding: 0;
margin: 0;
background-color: transparent;
width: 1em;
}
.btn-none:focus {
outline: none;
}

View File

@ -10,6 +10,7 @@ import clsx from 'clsx';
import { AutomationTestingProps } from '@/types';
import { Icon } from '@@/Icon';
import './Button.css';
type Type = 'submit' | 'button' | 'reset';
type Color =
@ -21,7 +22,8 @@ type Color =
| 'danger'
| 'link'
| 'light'
| 'dangerlight';
| 'dangerlight'
| 'none';
type Size = 'xsmall' | 'small' | 'medium' | 'large';
export interface Props extends AriaAttributes, AutomationTestingProps {