Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const LoginMainHeader: React.FunctionComponent<LoginMainHeaderProps> = ({
headerUtilities = null,
...props
}: LoginMainHeaderProps) => (
<header className={css(styles.loginMainHeader, className)} {...props}>
<div className={css(styles.loginMainHeader, className)} {...props}>
{title && (
<Title headingLevel="h2" size={TitleSizes['3xl']}>
{title}
Expand All @@ -33,6 +33,6 @@ export const LoginMainHeader: React.FunctionComponent<LoginMainHeaderProps> = ({
{subtitle && <p className={css(styles.loginMainHeaderDesc)}>{subtitle}</p>}
{headerUtilities && <div className={css(styles.loginMainHeaderUtilities)}>{headerUtilities}</div>}
{children}
</header>
</div>
);
LoginMainHeader.displayName = 'LoginMainHeader';
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

exports[`LoginMainHeader className is added to the root element 1`] = `
<DocumentFragment>
<header
<div
class="pf-v6-c-login__main-header extra-class"
/>
</DocumentFragment>
`;

exports[`LoginMainHeader renders with PatternFly Core styles 1`] = `
<DocumentFragment>
<header
<div
class="pf-v6-c-login__main-header"
/>
</DocumentFragment>
`;

exports[`LoginMainHeader title and subtitle are rendered correctly 1`] = `
<DocumentFragment>
<header
<div
class="pf-v6-c-login__main-header"
>
<h2
Expand All @@ -34,6 +34,6 @@ exports[`LoginMainHeader title and subtitle are rendered correctly 1`] = `
>
Use LDAP credentials
</p>
</header>
</div>
</DocumentFragment>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports[`check loginpage example against snapshot 1`] = `
<main
class="pf-v6-c-login__main"
>
<header
<div
class="pf-v6-c-login__main-header"
>
<h2
Expand All @@ -35,7 +35,7 @@ exports[`check loginpage example against snapshot 1`] = `
>
Log into your account
</h2>
</header>
</div>
<div
class="pf-v6-c-login__main-body"
/>
Expand Down
Loading