Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(AppFrame): allow classname prop in NavigationTopBar #1287

Merged
merged 1 commit into from
Aug 12, 2024
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 @@ -28,10 +28,11 @@ const alertClass = `${baseClass}__alert`;
*/
export const NavigationTopBar = ({
children,
className,
additionalNodes,
}: INavigationTopBarProps): React.ReactElement => {
return (
<div className={styles[baseClass]}>
<div className={cx(styles[baseClass], className)}>
{children}
{additionalNodes}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export interface ITopBarAlertProps extends ComponentCoreProps {
* Defaults to `info`.
* */
kind?: NavigationTopBarKind;

/**
* Properties of the close button. If defined, the alert will be closable and the close button will be rendered.
* aria-label is highly recommended for accessibility.
Expand All @@ -43,6 +44,7 @@ export interface ITopBarAlertProps extends ComponentCoreProps {
'data-testid'?: string;
'aria-label'?: string;
};

/**
* Content of the alert.
*/
Expand Down
Loading