Fix broken column header layout after heading refactor (#39331)
This commit is contained in:
1 parent
5553448678
commit
1bfdfcae7b
2 files changed
+13
-11
No files matched your search
@@ -276,17 +276,20 @@ export const ColumnHeader: React.FC<Props> = ({
|
||||
</>
|
||||
);
|
||||
|
||||
const titleClassNames = classNames('column-header__title', {
|
||||
'column-header__title--with-back-button': !!backButton,
|
||||
});
|
||||
|
||||
const component = (
|
||||
<div className={wrapperClassName}>
|
||||
<div className={headingClassName}>
|
||||
{backButton}
|
||||
{hasTitle && (
|
||||
<h1 className='column-header__title-wrapper'>
|
||||
{backButton}
|
||||
|
||||
{onClick ? (
|
||||
<button
|
||||
onClick={handleTitleClick}
|
||||
className='column-header__title'
|
||||
className={titleClassNames}
|
||||
type='button'
|
||||
id={getColumnSkipLinkId(columnIndex)}
|
||||
>
|
||||
@@ -294,7 +297,7 @@ export const ColumnHeader: React.FC<Props> = ({
|
||||
</button>
|
||||
) : (
|
||||
<span
|
||||
className='column-header__title'
|
||||
className={titleClassNames}
|
||||
tabIndex={-1}
|
||||
id={getColumnSkipLinkId(columnIndex)}
|
||||
>
|
||||
@@ -304,8 +307,6 @@ export const ColumnHeader: React.FC<Props> = ({
|
||||
</h1>
|
||||
)}
|
||||
|
||||
{!hasTitle && backButton}
|
||||
|
||||
<div className='column-header__buttons'>
|
||||
{extraButton}
|
||||
{collapseButton}
|
||||
|
||||
Reference in new issue
Block a user